Skip to content

Commit bc16de3

Browse files
DaiseyDmonkey-bug
authored andcommitted
better json var name
1 parent 42a1ece commit bc16de3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

backend/api/components/matches/controller.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ def api_get_all():
2020
def api_insertMatch():
2121
if request.method == "POST":
2222
try:
23-
content = request.json
24-
teamid1 = content["teamid1"]
25-
teamid2 = content["teamid2"]
23+
jsoncontent = request.json
24+
teamid1 = jsoncontent["teamid1"]
25+
teamid2 = jsoncontent["teamid2"]
2626
except Exception as e:
2727
print(e)
2828
return Response("Bad reequest", 400)

0 commit comments

Comments
 (0)