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