diff options
| author | Daniel Friesel <derf@finalrewind.org> | 2020-09-05 21:51:52 +0200 | 
|---|---|---|
| committer | Daniel Friesel <derf@finalrewind.org> | 2020-09-05 21:51:52 +0200 | 
| commit | a3149adddd77d2d9d35d08d24b38dca02eff00cb (patch) | |
| tree | 7f912e8362499a10b4e6b45c99f2ae5c9241d351 | |
| parent | 39e12ec32e7ed4998e3c025461ab8182cdf5639c (diff) | |
Fix checkin via API. Broken by 717cc18a403d6705c64a9a6fd43578c1efbb159f1.17.1
Closes #44
| -rwxr-xr-x | lib/Travelynx/Controller/Api.pm | 6 | 
1 files changed, 5 insertions, 1 deletions
| diff --git a/lib/Travelynx/Controller/Api.pm b/lib/Travelynx/Controller/Api.pm index 6ffd310..c7e58a9 100755 --- a/lib/Travelynx/Controller/Api.pm +++ b/lib/Travelynx/Controller/Api.pm @@ -223,7 +223,11 @@ sub travel_v1 {  		else {  			my $train_type = sanitize( q{}, $payload->{train}{type} );  			my $train_no   = sanitize( q{}, $payload->{train}{no} ); -			my $status = $self->get_departures( $from_station, 140, 40, 0 ); +			my $status     = $self->iris->get_departures( +				station    => $from_station, +				lookbehind => 140, +				lookahead  => 40 +			);  			if ( $status->{errstr} ) {  				$self->render(  					json => { | 
