Skip to content

Commit

Permalink
Fix NoneType default value for AoC LB
Browse files Browse the repository at this point in the history
  • Loading branch information
janine9vn committed Dec 1, 2023
1 parent 482f25f commit 4ec9612
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bot/exts/advent_of_code/_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"))
Expand Down

0 comments on commit 4ec9612

Please sign in to comment.