diff options
author | Daniel Friesel <derf@finalrewind.org> | 2020-08-06 16:04:12 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2020-08-06 16:04:12 +0200 |
commit | 717cc18a403d6705c64a9a6fd43578c1efbb159f (patch) | |
tree | d5e1ab56c42b85a0fa37f73c403f2eb177213701 /lib/Travelynx/Controller/Traveling.pm | |
parent | adaf65dc634b68e0890899e93bed62f0bbcb548a (diff) |
Move get_departures to a separate IRIS helper
Diffstat (limited to 'lib/Travelynx/Controller/Traveling.pm')
-rwxr-xr-x | lib/Travelynx/Controller/Traveling.pm | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/Travelynx/Controller/Traveling.pm b/lib/Travelynx/Controller/Traveling.pm index 05bbccd..e33009f 100755 --- a/lib/Travelynx/Controller/Traveling.pm +++ b/lib/Travelynx/Controller/Traveling.pm @@ -423,7 +423,12 @@ sub station { my $station = $self->stash('station'); my $train = $self->param('train'); - my $status = $self->get_departures( $station, 120, 30, 1 ); + my $status = $self->iris->get_departures( + station => $station, + lookbehind => 120, + lookahead => 30, + with_related => 1 + ); if ( $status->{errstr} ) { $self->render( |