From bfb8c313293e1f0ecaa8a9401ae8a0a67f85a8f2 Mon Sep 17 00:00:00 2001 From: vabene1111 Date: Sun, 18 Feb 2024 17:51:01 +0100 Subject: [PATCH] fixed issue in open data importer --- cookbook/helper/open_data_importer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookbook/helper/open_data_importer.py b/cookbook/helper/open_data_importer.py index 5fbb6ce129..7cfba03cf7 100644 --- a/cookbook/helper/open_data_importer.py +++ b/cookbook/helper/open_data_importer.py @@ -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)