From a1c3e3386ff3bf9fd82f020af8fd29cea82e6bc0 Mon Sep 17 00:00:00 2001 From: Andrew Date: Wed, 7 Aug 2024 20:28:13 -0400 Subject: [PATCH] Fix schedules creation fail due to missing action ID --- app/classes/shared/tasks.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/app/classes/shared/tasks.py b/app/classes/shared/tasks.py index da9735a9..ebd8aadf 100644 --- a/app/classes/shared/tasks.py +++ b/app/classes/shared/tasks.py @@ -341,7 +341,7 @@ class TasksManager: job_data["cron_string"], job_data["parent"], job_data["delay"], - job_data["action_id"], + job_data.get("action_id", None), ) # Checks to make sure some doofus didn't actually make the newly @@ -372,7 +372,7 @@ class TasksManager: "system" ), "command": job_data["command"], - "action_id": job_data["action_id"], + "action_id": job_data.get("action_id", None), } ], ) @@ -399,7 +399,7 @@ class TasksManager: "system" ), "command": job_data["command"], - "action_id": job_data["action_id"], + "action_id": job_data.get("action_id", None), } ], ) @@ -416,7 +416,7 @@ class TasksManager: "system" ), "command": job_data["command"], - "action_id": job_data["action_id"], + "action_id": job_data.get("action_id", None), } ], ) @@ -436,7 +436,7 @@ class TasksManager: "system" ), "command": job_data["command"], - "action_id": job_data["action_id"], + "action_id": job_data.get("action_id", None), } ], ) @@ -529,7 +529,7 @@ class TasksManager: "system" ), "command": job_data["command"], - "action_id": job_data["action_id"], + "action_id": job_data.get("action_id", None), } ], ) @@ -553,7 +553,7 @@ class TasksManager: "system" ), "command": job_data["command"], - "action_id": job_data["action_id"], + "action_id": job_data.get("action_id", None), } ], ) @@ -570,7 +570,7 @@ class TasksManager: "system" ), "command": job_data["command"], - "action_id": job_data["action_id"], + "action_id": job_data.get("action_id", None), } ], ) @@ -590,7 +590,7 @@ class TasksManager: "system" ), "command": job_data["command"], - "action_id": job_data["action_id"], + "action_id": job_data.get("action_id", None), } ], )