Journeys->get: allow filtering by departure timestamp

This commit is contained in:
Daniel Friesel 2023-03-01 17:58:58 +01:00
parent d1a3176edf
commit ae42028a71
No known key found for this signature in database
GPG key ID: 100D5BFB5166E005

View file

@ -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};