Skip to content

Commit

Permalink
function call
Browse files Browse the repository at this point in the history
  • Loading branch information
hiddewie committed Dec 15, 2024
1 parent e8627bd commit f171b8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/openrailwaymap_api/facility_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f171b8e

Please sign in to comment.