From abdbc02c6be1e27ce81886b30e23da94f957f999 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maximilian=20Ke=C3=9Fler?= Date: Tue, 14 Mar 2023 09:13:10 +0100 Subject: [PATCH] adjust downloading of actions: log if VoteTerminate action is found --- download_data.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/download_data.py b/download_data.py index 682ad09..6338ac6 100644 --- a/download_data.py +++ b/download_data.py @@ -40,7 +40,7 @@ def export_game(game_id) -> [bool, bool]: with conn.cursor() as cur: cur.execute("UPDATE seeds SET deck=(%s) WHERE seed=(%s);", (deck, r['seed'])) try: - actions = compress_actions([Action.from_json(a) for a in r['actions']]) + actions = compress_actions([Action.from_json(a) for a in r['actions']], r['id']) except: print("Unknown action while exporting game id {}".format(game_id)) raise