Skip to content
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion other/doomsday.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def get_week_day(year: int, month: int, day: int) -> str:
) % 7
day_anchor = (
DOOMSDAY_NOT_LEAP[month - 1]
if (year % 4 != 0) or (centurian == 0 and (year % 400) == 0)
if (year % 4 != 0) or ((centurian == 0) and (year % 400 != 0))
else DOOMSDAY_LEAP[month - 1]
)
week_day = (dooms_day + day - day_anchor) % 7
Expand Down