diff --git a/lib/Travelynx/Model/Journeys.pm b/lib/Travelynx/Model/Journeys.pm index a9c6200..0062642 100755 --- a/lib/Travelynx/Model/Journeys.pm +++ b/lib/Travelynx/Model/Journeys.pm @@ -545,6 +545,10 @@ sub get { $order{limit} = $opt{limit}; } + if ( $opt{sched_dep_ts} ) { + $where{sched_dep_ts} = $opt{sched_dep_ts}; + } + if ( $opt{journey_id} ) { $where{journey_id} = $opt{journey_id}; delete $where{cancelled};