From 15610210b9e8b9cb6769f55ade8600184c7fad6b Mon Sep 17 00:00:00 2001 From: Andrew Date: Wed, 2 Mar 2022 10:49:03 -0500 Subject: [PATCH] Fix bug in schedule creation where if interval was days an execption would be thrown for a missing key --- app/classes/web/panel_handler.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/app/classes/web/panel_handler.py b/app/classes/web/panel_handler.py index 3e4a753a..76243e09 100644 --- a/app/classes/web/panel_handler.py +++ b/app/classes/web/panel_handler.py @@ -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 = {