mirror of
https://github.com/StuffAnThings/qbit_manage.git
synced 2025-09-11 23:55:34 +08:00
fixes minor bug when qbt_run=true
This commit is contained in:
parent
18a583ece6
commit
61c42e7f5b
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue