From e8557d151544869809d7e355b946436ea87f2c4f Mon Sep 17 00:00:00 2001 From: Isaac Beh Date: Thu, 30 Nov 2023 23:05:15 +1000 Subject: [PATCH] Fixed the bug crashing leaderboards from anonymous users --- uqcsbot/utils/advent_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uqcsbot/utils/advent_utils.py b/uqcsbot/utils/advent_utils.py index b527cef..7d3ba16 100644 --- a/uqcsbot/utils/advent_utils.py +++ b/uqcsbot/utils/advent_utils.py @@ -34,7 +34,7 @@ def __init__(self, id: int, name: str, local: int, star_total: int, global_: int # The advent of code id self.id = id # The advent of code name - self.name = name + self.name = name if name else "Anon" # The score of the user on the local leaderboard self.local = local # The total number of stars the user has collected