Skip to content

Commit d6da81c

Browse files
committed
change ext to ext: for better filtering
1 parent 3261c24 commit d6da81c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/osm_osw_reformatter/serializer/osw/osw_normalizer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,7 @@ def _normalize(tags, keep_keys, defaults):
506506
new_tags.update(defaults)
507507

508508
# Keep all tags that start with "ext"
509-
ext_tags = {k: v for k, v in tags.items() if k.startswith("ext")}
509+
ext_tags = {k: v for k, v in tags.items() if k.startswith("ext:")}
510510
new_tags.update(ext_tags)
511511

512512
return new_tags

tests/unit_tests/test_osm2osw/test_osm2osw.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ async def run_test():
8585
geojson = json.load(f)
8686
for feature in geojson.get('features', []):
8787
props = feature.get('properties', {})
88-
if any(k.startswith("ext") for k in props):
88+
if any(k.startswith("ext:") for k in props):
8989
has_ext_tag = True
9090
break
9191
if has_ext_tag:

0 commit comments

Comments
 (0)