Fix midday check only once per run

This commit is contained in:
James Jennett-Wheeler 2025-06-24 14:35:47 +01:00
parent 203e8c9a1e
commit 5cd08da0a2

View File

@ -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)