From 3c1d301d13d576d3f50ce4321c60edc2eab4bb74 Mon Sep 17 00:00:00 2001 From: e-halinen <54105602+e-halinen@users.noreply.github.com> Date: Tue, 18 Jun 2024 14:13:22 +0300 Subject: [PATCH] Fix route_departures_for_timed_stops function subquery --- src/setup/createFunctions.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/setup/createFunctions.sql b/src/setup/createFunctions.sql index b397176..fc7a558 100644 --- a/src/setup/createFunctions.sql +++ b/src/setup/createFunctions.sql @@ -1145,7 +1145,7 @@ $$ AND NOT (departure.date_begin < route.date_begin AND departure.date_end < route.date_begin) AND NOT (departure.date_begin > route.date_end AND departure.date_end > route.date_end) AND NOT (departure.date_begin < user_date_begin AND departure.date_end < user_date_begin) - AND NOT (departure.date_begin > user_date_end AND departure.date_end > user_date_end)) + AND NOT (departure.date_begin > user_date_end AND departure.date_end > user_date_end)) departures WHERE ((timing_stop_type = 1) OR (timing_stop_type = 2) OR (stop_index = 1)) GROUP BY route_id, stop_id, direction, day_type, departure_id, hours, minutes, is_next_day, date_begin, date_end, timing_stop_type, stop_index; $$ language sql stable;