From 7c250c6f79c12400f9427fd571222717f5e1f457 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jannes=20H=C3=B6ke?= Date: Wed, 25 May 2016 03:01:25 +0200 Subject: [PATCH] don't record played cards if stats not enabled --- bot.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bot.py b/bot.py index 3dead69..b9bd225 100644 --- a/bot.py +++ b/bot.py @@ -599,7 +599,8 @@ def do_play_card(bot, player, result_id): if not us: us = UserSetting(id=user.id) - us.cards_played += 1 + if us.stats: + us.cards_played += 1 if game.choosing_color: send_async(bot, chat.id, text=_("Please choose a color"))