Skip to content

Commit

Permalink
fix creation of planning items via ingest (#1889)
Browse files Browse the repository at this point in the history
there is no request
  • Loading branch information
petrjasek committed Dec 18, 2023
1 parent 559f72c commit cc6ef7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/planning/planning/planning.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit cc6ef7a

Please sign in to comment.