From 22a620d9341dd3eaa468ac904a12bce1daef3264 Mon Sep 17 00:00:00 2001 From: Midgard Date: Sun, 18 Dec 2022 23:25:26 +0100 Subject: [PATCH] Quote WD ID in Overpass query --- osm_wikidata_check.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osm_wikidata_check.py b/osm_wikidata_check.py index 9eec972..a62e9c9 100755 --- a/osm_wikidata_check.py +++ b/osm_wikidata_check.py @@ -37,7 +37,7 @@ def overpass_query(wd_ids): def overpass_selector(wd_id): - return ' nwr["wikidata"=' + wd_id + ']({{bbox}});\n nwr[~":wikidata$"~' + wd_id + ']({{bbox}});' + return ' nwr["wikidata"="' + wd_id + '"]({{bbox}});\n nwr[~":wikidata$"~"' + wd_id + '"]({{bbox}});' def overpass_selectors(wd_ids):