Skip to content

Commit

Permalink
set correct time for within
Browse files Browse the repository at this point in the history
  • Loading branch information
bwees committed Dec 18, 2023
1 parent 27b44ba commit 6d109c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,9 +152,9 @@ def within():
# check if current time is +- 30 mins of 3:00 AM
now = datetime.datetime.now()

if now.hour == 5 and now.minute < 30:
if now.hour == 3 and now.minute < 30:
return "0"
elif now.hour == 4 and now.minute > 30:
elif now.hour == 2 and now.minute > 30:
return "0"

return "1"
Expand Down

0 comments on commit 6d109c2

Please sign in to comment.