diff options
author | Thomas André <thomas.andre@iggdrasil.net> | 2025-06-04 10:27:12 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2025-07-29 08:49:03 +0200 |
commit | edf13b44cc8f9d73b7be4574affe57faf5d07e6d (patch) | |
tree | 977fd4374bf6b82ecd3879e065fd7e3dc2f1c8da /ishtar_common/models_imports.py | |
parent | efc285c4615227b7c8f6503dca716d3160e0af7f (diff) | |
download | Ishtar-edf13b44cc8f9d73b7be4574affe57faf5d07e6d.tar.bz2 Ishtar-edf13b44cc8f9d73b7be4574affe57faf5d07e6d.zip |
New version for the export: creation of Finds and Context records layers adapted to the data source and new automations
Diffstat (limited to 'ishtar_common/models_imports.py')
-rw-r--r-- | ishtar_common/models_imports.py | 6 |
1 files changed, 5 insertions, 1 deletions
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 |