summaryrefslogtreecommitdiff
path: root/ishtar_common/views_api.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2025-12-15 17:40:05 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2025-12-15 17:40:05 +0100
commit145017ccfd16ead6baec8bec66af9ba0ec35ca9c (patch)
treee30e765e784abdee5b113423084c46094adc1a32 /ishtar_common/views_api.py
parent8269a7ea9e411d37dbbb22eb0a63b788a6501a8b (diff)
downloadIshtar-145017ccfd16ead6baec8bec66af9ba0ec35ca9c.tar.bz2
Ishtar-145017ccfd16ead6baec8bec66af9ba0ec35ca9c.zip
✨ GIS API: filter export by geo data type
Diffstat (limited to 'ishtar_common/views_api.py')
-rw-r--r--ishtar_common/views_api.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/ishtar_common/views_api.py b/ishtar_common/views_api.py
index fed1dc14e..d6d4a602f 100644
--- a/ishtar_common/views_api.py
+++ b/ishtar_common/views_api.py
@@ -118,6 +118,7 @@ class GISExportAPI(GISBaseImportView, GISAPIView):
try:
importer_class = importer.get_importer_class()
import_key = importer.get_gis_import_key()
+ geo_type = importer.gis_type.txt_idx
cols, col_names = importer.get_columns(importer_class=importer_class)
obj_name = importer_class.OBJECT_CLS.__name__.lower()
return get_item(importer_class.OBJECT_CLS, "get_" + obj_name, obj_name,
@@ -126,6 +127,7 @@ class GISExportAPI(GISBaseImportView, GISAPIView):
no_link=True, col_names=col_names,
col_types=importer.get_columns_types(),
geo_import_key=import_key,
+ geo_type=geo_type,
**dct
)
except ImporterError as e: