From 4ec9612b778d92bd0738af15293ba1250b61a4f7 Mon Sep 17 00:00:00 2001 From: Janine vN Date: Fri, 1 Dec 2023 00:42:37 -0500 Subject: [PATCH] Fix NoneType default value for AoC LB --- bot/exts/advent_of_code/_helpers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot/exts/advent_of_code/_helpers.py b/bot/exts/advent_of_code/_helpers.py index 5f679a3..0c1fa7d 100644 --- a/bot/exts/advent_of_code/_helpers.py +++ b/bot/exts/advent_of_code/_helpers.py @@ -164,7 +164,7 @@ def _parse_raw_leaderboard_data(raw_leaderboard_data: dict) -> dict: max_score = len(leaderboard) for (day, _star), results in star_results.items(): # If this day should not count in the ranking, skip it. - if day in AdventOfCode.ignored_days: + if AdventOfCode.ignored_days and day in AdventOfCode.ignored_days: continue sorted_result = sorted(results, key=operator.attrgetter("completion_time"))