Skip to content

Commit

Permalink
remove alias where it does not work with lambdas
Browse files Browse the repository at this point in the history
Fixes #3177.
  • Loading branch information
lonvia committed Aug 30, 2023
1 parent 2de8256 commit 15e09f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nominatim/api/search/db_searches.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ async def lookup_category(self, results: nres.SearchResults,
"""
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))\
Expand Down

0 comments on commit 15e09f2

Please sign in to comment.