From edf13b44cc8f9d73b7be4574affe57faf5d07e6d Mon Sep 17 00:00:00 2001 From: Thomas André Date: Wed, 4 Jun 2025 10:27:12 +0200 Subject: New version for the export: creation of Finds and Context records layers adapted to the data source and new automations --- ishtar_common/models_imports.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'ishtar_common/models_imports.py') diff --git a/ishtar_common/models_imports.py b/ishtar_common/models_imports.py index 6a9b8b145..2a7039d51 100644 --- a/ishtar_common/models_imports.py +++ b/ishtar_common/models_imports.py @@ -2325,7 +2325,7 @@ class Import(BaseImport): return name = self.imported_file.name.lower() ext = name.split(".")[-1] - if ext not in ("ods", "xls", "xlsx", "xlsm"): + if ext not in ("ods", "xls", "xlsx", "xlsm", "zip", "gpkg"): return imported_file_path = os.path.abspath(self.imported_file.path) media_root = os.path.abspath(settings.MEDIA_ROOT) @@ -2672,6 +2672,10 @@ class Import(BaseImport): if tmp_dir: shutil.rmtree(tmp_dir) + if imported_values.endswith(".gpkg"): + print(data) + del data[0][0] + print(data) return data @property -- cgit v1.2.3