aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2024-06-16 16:31:51 +0200
committerGuilhem Moulin <guilhem@fripost.org>2024-06-16 16:32:04 +0200
commit35635ebf16aebfe3113806acca0de274679118fe (patch)
treeddb2c913dbf650161ea466f87a3c339ac738ab8b
parent8cd8da2a39cfe55b7a580fde1ed7a83fe35d3c53 (diff)
webmap-import: Use the identity mapping if no ‘field-map’ is specified.
The previous default map was [-1] * n i.e., all source fields were ignored.
-rwxr-xr-xwebmap-import2
1 files changed, 1 insertions, 1 deletions
diff --git a/webmap-import b/webmap-import
index 57ef4b0..e9ae302 100755
--- a/webmap-import
+++ b/webmap-import
@@ -733,7 +733,7 @@ def setOutputFieldMap(defn, sources):
src = source['source']['path']
fieldMap2 = source['import'].get('field-map', None)
if fieldMap2 is None:
- fieldMap2 = {}
+ fieldMap2 = fieldMap
else:
if isinstance(fieldMap2, list):
# convert list to identity dictionary