From: Sarah Hoffmann Date: Wed, 6 Dec 2023 10:03:12 +0000 (+0100) Subject: void unnecessary aliases X-Git-Tag: v4.4.0~37^2~8 X-Git-Url: https://git.openstreetmap.org./nominatim.git/commitdiff_plain/df6eddebcd74982092477357ecf4a457a9acf561 void unnecessary aliases --- diff --git a/nominatim/api/search/db_searches.py b/nominatim/api/search/db_searches.py index a5461d6a..c56554fd 100644 --- a/nominatim/api/search/db_searches.py +++ b/nominatim/api/search/db_searches.py @@ -312,7 +312,7 @@ class NearSearch(AbstractSearch): if table is None: # No classtype table available, do a simplified lookup in placex. - table = conn.t.placex.alias('inner') + table = conn.t.placex sql = sa.select(table.c.place_id, sa.func.min(tgeom.c.centroid.ST_Distance(table.c.centroid)) .label('dist'))\