Skip to content

Commit

Permalink
fix: usage of wrong value for win calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
d-Rickyy-b committed Feb 24, 2021
1 parent 02572bf commit eac1fb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion database/statistics.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit eac1fb7

Please sign in to comment.