Browse Source

Revert "Strategická: Json je třeba naparsovat"

This reverts commit f01039276e68e50f62414e27797530201dfe9dfd.
master
David Klement 2 years ago
parent
commit
f44651d628
  1. 2
      server/hra/web/api.py

2
server/hra/web/api.py

@ -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 = json.loads(request.get_json()) j = 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:

Loading…
Cancel
Save