adjust downloading of actions: log if VoteTerminate action is found

This commit is contained in:
Maximilian Keßler 2023-03-14 09:13:10 +01:00
parent e04d3a9025
commit abdbc02c6b
Signed by: max
GPG key ID: BCC5A619923C0BA5

View file

@ -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