Skip to content

Commit

Permalink
Fix GTFS.xml (#25)
Browse files Browse the repository at this point in the history
Changes:
- GTFS fix: `service_id` and `route_id` columns were selected in the
wrong order
  • Loading branch information
sswirydo committed Jun 3, 2024
1 parent fedbaa7 commit 5e35601
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/GTFS.xml
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,7 @@ FROM trips_input
GROUP BY trip_id, service_id, route_id, date;

INSERT INTO trips_mdb(trip_id, service_id, route_id, date, trip)
SELECT trip_id, route_id, t.service_id, d.date,
SELECT trip_id, t.service_id, route_id, d.date,
shift(trip, make_interval(days => d.date - t.date))
FROM trips_mdb t JOIN service_dates d ON t.service_id = d.service_id AND t.date <> d.date;
</programlisting>
Expand Down

0 comments on commit 5e35601

Please sign in to comment.