From 40461802eca56b9d92e627e275b402bdcd3e6824 Mon Sep 17 00:00:00 2001 From: ks129 <45097959+ks129@users.noreply.github.com> Date: Fri, 27 Nov 2020 17:31:05 +0200 Subject: Add comment about choosing leaderboard for user --- bot/exts/christmas/adventofcode.py | 1 + 1 file changed, 1 insertion(+) (limited to 'bot/exts/christmas/adventofcode.py') 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) -- cgit v1.2.3