Quote WD ID in Overpass query

This commit is contained in:
Midgard 2022-12-18 23:25:26 +01:00
parent cf2a80b390
commit 22a620d934
Signed by: midgard
GPG key ID: 511C112F1331BBB4

View file

@ -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):