diff options
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 |