From fe7f0316f75c90054258ef1721cdade0fce31c07 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Mon, 5 Sep 2022 04:41:08 +0200 Subject: [PATCH] flush before game query --- files/helpers/blackjack.py | 1 + 1 file changed, 1 insertion(+) diff --git a/files/helpers/blackjack.py b/files/helpers/blackjack.py index f32e451c1..e2205d4c8 100644 --- a/files/helpers/blackjack.py +++ b/files/helpers/blackjack.py @@ -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',