planarnetwork / dtd2mysql

MySQL / MariaDB import for DTD feeds (fares, timetable and routeing)
30 stars 10 forks source link

Provide option GTFS_RANGE to configure schedules included #97

Closed dzfranklin closed 1 month ago

dzfranklin commented 1 month ago

The environment variable GTFS_RANGE will configure the schedules included. If not specified the default is the previously hardcoded value, 3 months.

Because mysql makes it annoying to provide an interval as an argument I just string interpolate it. The docs have a warning not to allow untrusted input.

linusnorton commented 1 month ago

one comment on a simpler way