don't record played cards if stats not enabled

This commit is contained in:
Jannes Höke 2016-05-25 03:01:25 +02:00
parent bcaea68ef9
commit 7c250c6f79

3
bot.py
View file

@ -599,7 +599,8 @@ def do_play_card(bot, player, result_id):
if not us: if not us:
us = UserSetting(id=user.id) us = UserSetting(id=user.id)
us.cards_played += 1 if us.stats:
us.cards_played += 1
if game.choosing_color: if game.choosing_color:
send_async(bot, chat.id, text=_("Please choose a color")) send_async(bot, chat.id, text=_("Please choose a color"))