fix export function
This commit is contained in:
parent
5c06ef7887
commit
ab2cda2207
1 changed files with 8 additions and 8 deletions
|
@ -53,15 +53,15 @@ def export_game(game_id) -> [bool, bool]:
|
||||||
with conn.cursor() as cur:
|
with conn.cursor() as cur:
|
||||||
cur.execute(
|
cur.execute(
|
||||||
"UPDATE games SET "
|
"UPDATE games SET "
|
||||||
"deck_plays=(%s)"
|
"deck_plays = (%s),"
|
||||||
"one_extra_card=(%s)"
|
"one_extra_card = (%s),"
|
||||||
"one_less_card=(%s)"
|
"one_less_card = (%s),"
|
||||||
"all_or_nothing=(%s)"
|
"all_or_nothing = (%s),"
|
||||||
"actions = (%s) "
|
"actions = (%s) "
|
||||||
"WHERE id = (%s);",
|
"WHERE id = (%s);",
|
||||||
(deck_plays, one_extra_card, one_less_card, all_or_nothing, actions, game_id))
|
(deck_plays, one_extra_card, one_less_card, all_or_nothing, actions, game_id))
|
||||||
conn.commit()
|
conn.commit()
|
||||||
return True, not any(deck_plays, one_extra_card, one_less_card, all_or_nothing)
|
return True, not any([deck_plays, one_extra_card, one_less_card, all_or_nothing])
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
export_game(913436)
|
export_game(913436)
|
||||||
|
|
Loading…
Reference in a new issue