diff options
author | 2020-11-27 17:31:05 +0200 | |
---|---|---|
committer | 2020-11-27 17:31:05 +0200 | |
commit | 40461802eca56b9d92e627e275b402bdcd3e6824 (patch) | |
tree | cc3dfe896abf9bf32d8f565523511ab92211f210 /bot/exts/christmas/adventofcode.py | |
parent | Store 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.py | 1 |
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) |