mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2024-08-30 18:23:09 +00:00
Fix bug in schedule creation where if interval was days an execption would be thrown for a missing key
This commit is contained in:
parent
7707940743
commit
15610210b9
@ -1191,7 +1191,9 @@ class PanelHandler(BaseHandler):
|
||||
"start_time": sch_time,
|
||||
"enabled": enabled,
|
||||
"one_time": one_time,
|
||||
"cron_string": ''
|
||||
"cron_string": '',
|
||||
"parent": None,
|
||||
"delay": 0
|
||||
}
|
||||
elif difficulty == "reaction":
|
||||
job_data = {
|
||||
@ -1339,7 +1341,9 @@ class PanelHandler(BaseHandler):
|
||||
"start_time": sch_time,
|
||||
"enabled": enabled,
|
||||
"one_time": one_time,
|
||||
"cron_string": ''
|
||||
"cron_string": '',
|
||||
"parent": None,
|
||||
"delay": 0
|
||||
}
|
||||
elif difficulty == "advanced":
|
||||
job_data = {
|
||||
|
Loading…
Reference in New Issue
Block a user