From c55b4b81ed9d382484eecd8eb18e6489bbefc075 Mon Sep 17 00:00:00 2001 From: Pesakitan22 Date: Wed, 18 Apr 2018 09:59:10 +0700 Subject: [PATCH] fix stats --- actions.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/actions.py b/actions.py index 36eee4a..dfce4f5 100644 --- a/actions.py +++ b/actions.py @@ -108,7 +108,7 @@ def do_play_card(bot, player, result_id): text=__("{name} won!", multi=game.translate) .format(name=user.first_name)) send_async(bot, chat.id, - text=__("Game ended! Flawless Victory!", multi=game.translate)) + text=__("Game ended! Flawless Victory!")) if us.stats: # us.games_played += 1 @@ -122,7 +122,8 @@ def do_play_card(bot, player, result_id): game.players_won += 1 try: - gm.leave_game(user, chat) + if game.mode != 'one': + gm.leave_game(user, chat) except NotEnoughPlayersError: send_async(bot, chat.id, text=__("Game ended!", multi=game.translate))