mirror of
https://github.com/osm-search/Nominatim.git
synced 2024-11-09 16:26:02 +03:00
avoid lambda SQL in connection with alias tables
This commit is contained in:
parent
611b925368
commit
96e5a23727
@ -670,7 +670,7 @@ class PlaceSearch(AbstractSearch):
|
||||
.where(thnr.c.indexed_status == 0)
|
||||
|
||||
if details.excluded:
|
||||
place_sql = place_sql.where(_exclude_places(thnr))
|
||||
place_sql = place_sql.where(thnr.c.place_id.not_in(sa.bindparam('excluded')))
|
||||
if self.qualifiers:
|
||||
place_sql = place_sql.where(self.qualifiers.sql_restrict(thnr))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user