Fix midday check only once per run
This commit is contained in:
parent
203e8c9a1e
commit
5cd08da0a2
@ -101,6 +101,7 @@ if __name__ == '__main__':
|
||||
pause.until(next_start)
|
||||
else:
|
||||
if datetime.now().time() > time(19, 0, 0):
|
||||
midday_checked = False
|
||||
next_start = next_working_hour()
|
||||
print(f"Pausing until: {next_start}")
|
||||
pause.until(next_start)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user