Skip to content

Commit 4fa4462

Browse files
committed
Omit primary key in feature properties in feature_from_query
1 parent d9ce156 commit 4fa4462

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/dataset_features_provider.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1080,6 +1080,8 @@ def feature_from_query(self, row, client_srid, filter_fields=None):
10801080
for attr in self.attributes:
10811081
if filter_fields and not attr in filter_fields:
10821082
continue
1083+
if attr == self.primary_key:
1084+
continue
10831085
value = row[attr]
10841086
# Ensure values are JSON serializable
10851087
if isinstance(value, date):

0 commit comments

Comments
 (0)