From eac1fb7b316c0bcd5faec8f6a1618a76f8f5600e Mon Sep 17 00:00:00 2001 From: Rico Date: Wed, 24 Feb 2021 02:57:20 +0100 Subject: [PATCH] fix: usage of wrong value for win calculation --- database/statistics.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/database/statistics.py b/database/statistics.py index 15631ec..656abf6 100644 --- a/database/statistics.py +++ b/database/statistics.py @@ -16,7 +16,7 @@ def set_game_won(user_id): if user is None: logger.warning("User '{}' is None - can't set won games!".format(user)) return - games_won = int(user[6]) + 1 + games_won = int(user[5]) + 1 logger.debug("Add game won for user: {}".format(user_id)) db.set_games_won(games_won, user_id)