remove alias where it does not work with lambdas

Fixes #3177.
This commit is contained in:
Sarah Hoffmann 2023-08-30 21:52:51 +02:00
parent 2de8256863
commit 15e09f2b24

View File

@ -271,7 +271,7 @@ class NearSearch(AbstractSearch):
"""
table = await conn.get_class_table(*category)
t = conn.t.placex.alias('p')
t = conn.t.placex
tgeom = conn.t.placex.alias('pgeom')
sql = _select_placex(t).where(tgeom.c.place_id.in_(ids))\