Skip to content

Commit

Permalink
Merge pull request #83 from takkii/develop
Browse files Browse the repository at this point in the history
Update.
  • Loading branch information
takkii committed Apr 8, 2024
2 parents f19b80e + 45b9e40 commit de94bb4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion unit/timestamp.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ def main():
else:
st_calc = int(st_week)

# 0=Sun, 1=Mon, 2=Tues, 3=Wedness, 4=Thurs, 5=Fri, 6=Saturs, 7=Sun
wk = ["Sun", "Mon", "Tues", "Wedness", "Thurs", "Fri", "Satur", "Sun"]
cl_wk = wk[round(calc)]

Expand All @@ -49,7 +50,7 @@ def main():
if week_bl is True:
print("Weekday is correct, OK!")
elif week_bl is False:
print("Else is False, NO!")
raise ValueError("Else is False, NO!")
else:
raise RuntimeError from None

Expand Down

0 comments on commit de94bb4

Please sign in to comment.