mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-03-12 05:44:06 +00:00
simplify handling of SQL lookup code for search_name
Use function classes which can be instantiated directly.
This commit is contained in:
@@ -563,7 +563,6 @@ class PostcodeSearch(AbstractSearch):
|
||||
|
||||
if self.lookups:
|
||||
assert len(self.lookups) == 1
|
||||
assert self.lookups[0].lookup_type == 'restrict'
|
||||
tsearch = conn.t.search_name
|
||||
sql = sql.where(tsearch.c.place_id == t.c.parent_place_id)\
|
||||
.where((tsearch.c.name_vector + tsearch.c.nameaddress_vector)
|
||||
|
||||
Reference in New Issue
Block a user