forked from test/mau_mau_bot
don't record played cards if stats not enabled
This commit is contained in:
parent
bcaea68ef9
commit
7c250c6f79
1 changed files with 2 additions and 1 deletions
3
bot.py
3
bot.py
|
@ -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"))
|
||||||
|
|
Loading…
Reference in a new issue