diff options
author | Thomas André <thomas.andre@iggdrasil.net> | 2025-06-10 11:54:22 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2025-07-29 08:49:03 +0200 |
commit | e0e2cc9c916a122cc6e810620bbc5fda974f41bd (patch) | |
tree | 7478b74edf3171bd349c86f96f53f80d98b057af /ishtar_common/models_imports.py | |
parent | edf13b44cc8f9d73b7be4574affe57faf5d07e6d (diff) | |
download | Ishtar-e0e2cc9c916a122cc6e810620bbc5fda974f41bd.tar.bz2 Ishtar-e0e2cc9c916a122cc6e810620bbc5fda974f41bd.zip |
Corrections in the importation of SIG data + Application of modifications and optimisation for the exportation of SIG data
Diffstat (limited to 'ishtar_common/models_imports.py')
-rw-r--r-- | ishtar_common/models_imports.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ishtar_common/models_imports.py b/ishtar_common/models_imports.py index 2a7039d51..02a00c469 100644 --- a/ishtar_common/models_imports.py +++ b/ishtar_common/models_imports.py @@ -2346,7 +2346,6 @@ class Import(BaseImport): return last_column = max(col_numbers) filename = ".".join(imported_file_path.split('.')[:-1]) + f"-{random.randint(1, 10000):05d}.csv" - try: data.to_csv(filename, index=False, columns=data.columns[range(last_column)], float_format=np_format_int_float) @@ -2674,7 +2673,8 @@ class Import(BaseImport): shutil.rmtree(tmp_dir) if imported_values.endswith(".gpkg"): print(data) - del data[0][0] + for elem in data: + del elem[0] print(data) return data |