Skip to content

Commit

Permalink
bug: daily(HH:MM|HH:MM) format fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Drazzilb08 committed Feb 17, 2024
1 parent 642e197 commit eff073a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions util/scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ def check_schedule(script_name, schedule):
times = data.split("|")
for time in times:
hour, minute = map(int, time.split(":"))
if now.hour == hour and now.minute == minute:
return True
if now.hour == hour and now.minute == minute:
return True
return False
elif frequency == "weekly":
days = [day.split("@")[0] for day in data.split("|")]
Expand Down

0 comments on commit eff073a

Please sign in to comment.