From ae42028a71a21c034a1bbb804d8f1bc599f2dba4 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Wed, 1 Mar 2023 17:58:58 +0100 Subject: Journeys->get: allow filtering by departure timestamp --- lib/Travelynx/Model/Journeys.pm | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/Travelynx/Model') 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}; -- cgit v1.2.3