forked from rDrama/rDrama
1
0
Fork 0

try fixing blackjack

master
Aevann1 2022-09-05 07:15:42 +02:00
parent 225e64b91e
commit e554f0924b
1 changed files with 1 additions and 2 deletions

View File

@ -48,11 +48,10 @@ 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',
Casino_Game.user_id == gambler.id).one_or_none()
Casino_Game.user_id == gambler.id).first()
if game:
return game, json.loads(game.game_state)