mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-16 15:47:58 +00:00
fix comparision between countr tokens and country restriction
This commit is contained in:
@@ -413,7 +413,7 @@ class SearchBuilder:
|
||||
"""
|
||||
tokens = self.query.get_tokens(trange, qmod.TOKEN_COUNTRY)
|
||||
if self.details.countries:
|
||||
tokens = [t for t in tokens if t.lookup_word in self.details.countries]
|
||||
tokens = [t for t in tokens if t.get_country() in self.details.countries]
|
||||
|
||||
return tokens
|
||||
|
||||
|
||||
Reference in New Issue
Block a user