aboutsummaryrefslogtreecommitdiffstats
path: root/bot/exts/christmas/adventofcode.py
diff options
context:
space:
mode:
authorGravatar ks129 <[email protected]>2020-11-27 17:31:05 +0200
committerGravatar ks129 <[email protected]>2020-11-27 17:31:05 +0200
commit40461802eca56b9d92e627e275b402bdcd3e6824 (patch)
treecc3dfe896abf9bf32d8f565523511ab92211f210 /bot/exts/christmas/adventofcode.py
parentStore AoC leaderboard IDs instead join codes for users mapping (diff)
Add comment about choosing leaderboard for user
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)