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
1
bot.py
1
bot.py
|
@ -599,6 +599,7 @@ def do_play_card(bot, player, result_id):
|
||||||
if not us:
|
if not us:
|
||||||
us = UserSetting(id=user.id)
|
us = UserSetting(id=user.id)
|
||||||
|
|
||||||
|
if us.stats:
|
||||||
us.cards_played += 1
|
us.cards_played += 1
|
||||||
|
|
||||||
if game.choosing_color:
|
if game.choosing_color:
|
||||||
|
|
Loading…
Reference in a new issue