Skip to content

Commit

Permalink
fixed issue in open data importer
Browse files Browse the repository at this point in the history
  • Loading branch information
vabene1111 committed Feb 18, 2024
1 parent 55b8b78 commit bfb8c31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cookbook/helper/open_data_importer.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ def import_food(self):
'space': self.request.space.id,
}

if self.update_existing:
if obj['open_data_slug'] in existing_data:
obj['space'] = self.request.space
obj['pk'] = existing_data[obj['open_data_slug']]['pk']
obj = Food(**obj)
Expand Down

0 comments on commit bfb8c31

Please sign in to comment.