Skip to content

Commit

Permalink
minor change
Browse files Browse the repository at this point in the history
  • Loading branch information
devketanpro committed Jan 31, 2024
1 parent ee20f58 commit 41aceeb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/planning/events/events_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ def _get_event(_id):

def _fill_event_template(self, doc):
event = self._get_event(doc["based_on_event"])
doc["data"].update(event.copy())
doc.setdefault("data", {}).update(event.copy())
for field in DUPLICATE_EVENT_IGNORED_FIELDS:
doc["data"].pop(field, None)

Expand Down

0 comments on commit 41aceeb

Please sign in to comment.