flush before game query

remotes/1693045480750635534/spooky-22
Aevann1 2022-09-05 04:41:08 +02:00
parent 11b391c437
commit fe7f0316f7
1 changed files with 1 additions and 0 deletions

View File

@ -48,6 +48,7 @@ def save_game_state(game, new_state):
def get_active_game(gambler):
g.db.flush()
game = g.db.query(Casino_Game) \
.filter(Casino_Game.active == True,
Casino_Game.kind == 'blackjack',