We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 42a1ece commit bc16de3Copy full SHA for bc16de3
backend/api/components/matches/controller.py
@@ -20,9 +20,9 @@ def api_get_all():
20
def api_insertMatch():
21
if request.method == "POST":
22
try:
23
- content = request.json
24
- teamid1 = content["teamid1"]
25
- teamid2 = content["teamid2"]
+ jsoncontent = request.json
+ teamid1 = jsoncontent["teamid1"]
+ teamid2 = jsoncontent["teamid2"]
26
except Exception as e:
27
print(e)
28
return Response("Bad reequest", 400)
0 commit comments