aboutsummaryrefslogtreecommitdiffstats
path: root/bot/exts/christmas/adventofcode.py
diff options
context:
space:
mode:
Diffstat (limited to 'bot/exts/christmas/adventofcode.py')
-rw-r--r--bot/exts/christmas/adventofcode.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/bot/exts/christmas/adventofcode.py b/bot/exts/christmas/adventofcode.py
index 70bdc50a..2b8ac7bf 100644
--- a/bot/exts/christmas/adventofcode.py
+++ b/bot/exts/christmas/adventofcode.py
@@ -404,6 +404,7 @@ class AdventOfCode(commands.Cog):
join_code = self.leaderboard_join_codes[await self.user_leaderboards.get(ctx.author.id)]
log.info(f"{author.name} ({author.id}) have already cached AoC join code. Returning it.")
else:
+ # Find leaderboard that have least members inside (based on cache)
least_id, least = 0, 200
for aoc_id, amount in await self.public_leaderboard_members.items():
log.info(amount, least)