From f171b8ec75883ad37006d2af56b3ab74a6e44b59 Mon Sep 17 00:00:00 2001 From: Hidde Wieringa Date: Sun, 15 Dec 2024 11:18:02 +0100 Subject: [PATCH] function call --- api/openrailwaymap_api/facility_api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/openrailwaymap_api/facility_api.py b/api/openrailwaymap_api/facility_api.py index 6b3e9f6d..eeff3c24 100644 --- a/api/openrailwaymap_api/facility_api.py +++ b/api/openrailwaymap_api/facility_api.py @@ -66,7 +66,7 @@ async def search_by_name(self, q, limit): {fields}, latitude, longitude, rank FROM ( SELECT - {fields}, ST_X(ST_Transform(geom, 4326)) AS latitude, ST_Y(ST_Transform(geom, 4326)) AS longitude, openrailwaymap_name_rank(phraseto_tsquery('simple', unaccent(openrailwaymap_hyphen_to_space($1))), terms, route_count, station_count, railway, station) AS rank + {fields}, ST_X(ST_Transform(geom, 4326)) AS latitude, ST_Y(ST_Transform(geom, 4326)) AS longitude, openrailwaymap_name_rank(phraseto_tsquery('simple', unaccent(openrailwaymap_hyphen_to_space($1))), terms, route_count, railway, station) AS rank FROM openrailwaymap_facilities_for_search WHERE terms @@ phraseto_tsquery('simple', unaccent(openrailwaymap_hyphen_to_space($1))) ) AS a