Fix bug in schedule creation where if interval was days an execption would be thrown for a missing key

This commit is contained in:
Andrew 2022-03-02 10:49:03 -05:00
parent 7707940743
commit 15610210b9

View File

@ -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 = {