mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-26 11:08:13 +00:00
avoid lambda SQL in connection with alias tables
This commit is contained in:
@@ -670,7 +670,7 @@ class PlaceSearch(AbstractSearch):
|
|||||||
.where(thnr.c.indexed_status == 0)
|
.where(thnr.c.indexed_status == 0)
|
||||||
|
|
||||||
if details.excluded:
|
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:
|
if self.qualifiers:
|
||||||
place_sql = place_sql.where(self.qualifiers.sql_restrict(thnr))
|
place_sql = place_sql.where(self.qualifiers.sql_restrict(thnr))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user