mirror of
https://github.com/derf/travelynx
synced 2024-12-02 09:19:11 +00:00
Journeys->get: allow filtering by departure timestamp
This commit is contained in:
parent
d1a3176edf
commit
ae42028a71
1 changed files with 4 additions and 0 deletions
|
@ -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};
|
||||
|
|
Loading…
Reference in a new issue