Strategická: Json je třeba naparsovat

This commit is contained in:
David Klement 2022-09-14 15:54:12 +02:00
parent 3772309995
commit 75c9531662

View file

@ -63,7 +63,7 @@ def api_action():
team = get_context() team = get_context()
game = team.game game = team.game
team_id = team.team_id team_id = team.team_id
j = request.get_json() j = json.loads(request.get_json())
state = game.current_state() state = game.current_state()
round_id = args_get('round', int) round_id = args_get('round', int)
if round_id < 0 or round_id > game.current_round: if round_id < 0 or round_id > game.current_round: