avoid lambda SQL in connection with alias tables

This commit is contained in:
Sarah Hoffmann 2023-08-13 11:40:49 +02:00
parent 611b925368
commit 96e5a23727

View File

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