-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
In the tie breaker if the number of posts of all tied users is the same, it does not work, results in an error.
INFO: Starting tie-breaker:
Traceback (most recent call last):
File "discourse-python/main.py", line 39, in <module>
discourse.get_leaderboard() # create png of users leaderboard
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "discourse_leaderboard.py", line 174, in get_leaderboard
footnote = f"Tie-breaker: {list(self.SORTED_USERS_POINTS_LIST[2].keys())[0]} won by most posts ({max_posts})!"
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^
IndexError: list index out of range
Metadata
Metadata
Assignees
Labels
No labels