From 5eb0ee58096eff0c70f4d38ab5a1070a75d7951d Mon Sep 17 00:00:00 2001 From: Petr Jasek Date: Mon, 18 Dec 2023 10:32:52 +0100 Subject: [PATCH] fix creation of planning items via ingest there is no request --- server/planning/planning/planning.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/planning/planning/planning.py b/server/planning/planning/planning.py index 0ac13af90..8315e98e6 100644 --- a/server/planning/planning/planning.py +++ b/server/planning/planning/planning.py @@ -157,7 +157,7 @@ def on_create(self, docs): if is_ingested: history_service.on_item_created([doc]) - if event and strtobool(request.args.get("add_to_series", "false")): + if event and request and strtobool(request.args.get("add_to_series", "false")): new_plans = self._add_planning_to_event_series(doc, event) if is_ingested: history_service.on_item_created(new_plans)