diff options
author | 2020-12-02 08:46:26 +0100 | |
---|---|---|
committer | 2020-12-02 08:46:26 +0100 | |
commit | 02c5c7e2b120c055b7db07d2ca9568d1ae25c399 (patch) | |
tree | 19f1ff53d6767be25d2a583fc59dfae8ceac737a /bot/constants.py | |
parent | Fix daily stats by converting day, star to str (diff) |
Fix leaderboard glitch caused by duplicate names
We noticed that some entries on our leaderboard had an incorrect star
count attached to their name.
After a bit of digging, @HassanAbouelela discovered that this was caused
by the use of the member's name as the key for the leaderboard
dictionary: If different accounts used the same display name for the
leaderboard, they'd be combined into one glitched score dict.
The fix @HassanAbouelela wrote is to use the member id instead of the
name as the key for the leaderboard. I've changed a few names here and
there, but nothing major.
This commit closes #536
Diffstat (limited to 'bot/constants.py')
0 files changed, 0 insertions, 0 deletions