parent
39e12ec32e
commit
a3149adddd
1 changed files with 5 additions and 1 deletions
|
@ -223,7 +223,11 @@ sub travel_v1 {
|
||||||
else {
|
else {
|
||||||
my $train_type = sanitize( q{}, $payload->{train}{type} );
|
my $train_type = sanitize( q{}, $payload->{train}{type} );
|
||||||
my $train_no = sanitize( q{}, $payload->{train}{no} );
|
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} ) {
|
if ( $status->{errstr} ) {
|
||||||
$self->render(
|
$self->render(
|
||||||
json => {
|
json => {
|
||||||
|
|
Loading…
Reference in a new issue