Skip to content

Commit 1a87eed

Browse files
Update other/doomsday.py
Co-authored-by: Tianyi Zheng <[email protected]>
1 parent b9e935e commit 1a87eed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

other/doomsday.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def get_week_day(year: int, month: int, day: int) -> str:
4646
) % 7
4747
day_anchor = (
4848
DOOMSDAY_NOT_LEAP[month - 1]
49-
if (year % 4 != 0) or ((centurian == 0) and (year % 400 != 0))
49+
if year % 4 != 0 or (centurian == 0 and year % 400 != 0)
5050
else DOOMSDAY_LEAP[month - 1]
5151
)
5252
week_day = (dooms_day + day - day_anchor) % 7

0 commit comments

Comments
 (0)