fixes minor bug when qbt_run=true

This commit is contained in:
bobokun 2023-04-01 10:08:47 -04:00
parent 18a583ece6
commit 61c42e7f5b
No known key found for this signature in database
GPG key ID: B73932169607D927

View file

@ -481,6 +481,7 @@ def calc_next_run(schd, write_out=False):
time_to_run = datetime.now() + timedelta(minutes=schd)
time_to_run_str = time_to_run.strftime("%H:%M")
new_seconds = (datetime.strptime(time_to_run_str, "%H:%M") - datetime.strptime(current, "%H:%M")).total_seconds()
time_until = ""
next_run = {}
if run is False:
next_run["next_run"] = time_to_run