summaryrefslogtreecommitdiff
path: root/ishtar_common/views.py
diff options
context:
space:
mode:
Diffstat (limited to 'ishtar_common/views.py')
-rw-r--r--ishtar_common/views.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/ishtar_common/views.py b/ishtar_common/views.py
index a2c041030..a6010dfa6 100644
--- a/ishtar_common/views.py
+++ b/ishtar_common/views.py
@@ -870,9 +870,13 @@ def get_by_importer(
importer = q.all()[0]
importer_class = importer.get_importer_class()
cols, col_names = importer.get_columns(importer_class=importer_class)
+ if importer.export_format:
+ data_type = importer.export_format
+ dct["type"] = importer.export_format
+ print(data_type)
+ print(dct)
if data_type == "csv" or dct.get("type", "") == "csv":
obj_name = importer.name
- print(obj_name)
elif data_type == "gpkg" or dct.get("type", "") == "gpkg":
obj_name = importer.name
else: