From 75c9531662179954af0a14d3a6075a45e3a67f93 Mon Sep 17 00:00:00 2001 From: kulisak12 Date: Wed, 14 Sep 2022 15:54:12 +0200 Subject: [PATCH] =?UTF-8?q?Strategick=C3=A1:=20Json=20je=20t=C5=99eba=20na?= =?UTF-8?q?parsovat?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/hra/web/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/hra/web/api.py b/server/hra/web/api.py index 5eebe31..f20888c 100644 --- a/server/hra/web/api.py +++ b/server/hra/web/api.py @@ -63,7 +63,7 @@ def api_action(): team = get_context() game = team.game team_id = team.team_id - j = request.get_json() + j = json.loads(request.get_json()) state = game.current_state() round_id = args_get('round', int) if round_id < 0 or round_id > game.current_round: