Skip to content

Commit

Permalink
better json var name
Browse files Browse the repository at this point in the history
  • Loading branch information
DoodleyJC committed Aug 5, 2024
1 parent 3666675 commit bba9241
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions backend/api/components/matches/controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ def api_get_all():
def api_insertMatch():
if request.method == "POST":
try:
content = request.json
teamid1 = content["teamid1"]
teamid2 = content["teamid2"]
jsoncontent = request.json
teamid1 = jsoncontent["teamid1"]
teamid2 = jsoncontent["teamid2"]
except Exception as e:
print(e)
return Response("Bad reequest", 400)
Expand Down

0 comments on commit bba9241

Please sign in to comment.