From 7845c79889764caef8843f6d791c62d489a87fe4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maximilian=20Ke=C3=9Fler?= Date: Sat, 24 Jun 2023 18:35:15 +0200 Subject: [PATCH] export starting_player of games as well --- download_data.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/download_data.py b/download_data.py index 3affd68..e57c9c8 100644 --- a/download_data.py +++ b/download_data.py @@ -88,10 +88,10 @@ def detailed_export_game(game_id: int, score: Optional[int] = None, var_id: Opti cur.execute( "INSERT INTO games (" - "id, num_players, score, seed, variant_id, deck_plays, one_extra_card, one_less_card," + "id, num_players, starting_player, score, seed, variant_id, deck_plays, one_extra_card, one_less_card," "all_or_nothing, actions" ")" - "VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s)" + "VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)" "ON CONFLICT (id) DO UPDATE SET (" "deck_plays, one_extra_card, one_less_card, all_or_nothing, actions" ") = (" @@ -99,7 +99,7 @@ def detailed_export_game(game_id: int, score: Optional[int] = None, var_id: Opti "EXCLUDED.actions" ")", ( - game_id, num_players, score, seed, var_id, deck_plays, one_extra_card, one_less_card, + game_id, num_players, starting_player, score, seed, var_id, deck_plays, one_extra_card, one_less_card, all_or_nothing, compressed_actions ) )