Skip to content

Commit eac1fb7

Browse files
committed
fix: usage of wrong value for win calculation
1 parent 02572bf commit eac1fb7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

database/statistics.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def set_game_won(user_id):
1616
if user is None:
1717
logger.warning("User '{}' is None - can't set won games!".format(user))
1818
return
19-
games_won = int(user[6]) + 1
19+
games_won = int(user[5]) + 1
2020
logger.debug("Add game won for user: {}".format(user_id))
2121
db.set_games_won(games_won, user_id)
2222

0 commit comments

Comments
 (0)