diff --git a/game_manager.py b/game_manager.py index a3763e1..b1fa52c 100644 --- a/game_manager.py +++ b/game_manager.py @@ -64,6 +64,9 @@ class GameManager(object): try: us = UserSetting.get(id=user.id) + if not us: + us = UserSetting(id=user.id) + us.games_played += 1 game = self.chatid_games[chat.id][-1] except (KeyError, IndexError):