Skip to content

Commit

Permalink
Merge pull request #47 from Delfram99/bugfix
Browse files Browse the repository at this point in the history
fix json request
  • Loading branch information
B3none authored Jan 11, 2023
2 parents a5a8166 + 7035513 commit 36d98d8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bot/cogs/utils/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,12 @@ async def new_match(

url = f'{Config.api_url}/match/start'
data = {
'team_one': {user.id: user.display_name for user in team_one},
'team_two': {user.id: user.display_name for user in team_two}
'team_one': {f'{user.id}': user.display_name for user in team_one},
'team_two': {f'{user.id}': user.display_name for user in team_two}
}

if map_pick:
data['maps'] = map_pick
data['maps'] = [f'{map_pick}']

async with Sessions.requests.post(url=url, json=data) as resp:
json = await resp.json()
Expand Down

0 comments on commit 36d98d8

Please sign in to comment.