Loading index.pl +10 −7 Original line number Diff line number Diff line Loading @@ -317,8 +317,8 @@ helper 'checkout' => sub { name => $status->{station_name} ), DateTime->now( time_zone => 'Europe/Berlin' )->epoch, undef, undef, undef, undef, undef, undef, undef, undef undef, undef, undef, undef, undef, undef, undef, undef ); if ( defined $success ) { return; Loading Loading @@ -484,7 +484,9 @@ helper 'get_user_travels' => sub { } ); } elsif ( $action == $action_type{checkin} and $prev_action == $action_type{checkout} ) { elsif ( $action == $action_type{checkin} and $prev_action == $action_type{checkout} ) { my $ref = $travels[-1]; $ref->{from_name} = $name; $ref->{completed} = 1; Loading Loading @@ -705,7 +707,8 @@ get '/*station' => sub { @results = map { $_->[0] } sort { $b->[1] <=> $a->[1] } map { [$_, $_->sched_departure->epoch // $_->departure->epoch] } @results; map { [ $_, $_->sched_departure->epoch // $_->departure->epoch ] } @results; $self->render( 'departures', Loading Loading
index.pl +10 −7 Original line number Diff line number Diff line Loading @@ -317,8 +317,8 @@ helper 'checkout' => sub { name => $status->{station_name} ), DateTime->now( time_zone => 'Europe/Berlin' )->epoch, undef, undef, undef, undef, undef, undef, undef, undef undef, undef, undef, undef, undef, undef, undef, undef ); if ( defined $success ) { return; Loading Loading @@ -484,7 +484,9 @@ helper 'get_user_travels' => sub { } ); } elsif ( $action == $action_type{checkin} and $prev_action == $action_type{checkout} ) { elsif ( $action == $action_type{checkin} and $prev_action == $action_type{checkout} ) { my $ref = $travels[-1]; $ref->{from_name} = $name; $ref->{completed} = 1; Loading Loading @@ -705,7 +707,8 @@ get '/*station' => sub { @results = map { $_->[0] } sort { $b->[1] <=> $a->[1] } map { [$_, $_->sched_departure->epoch // $_->departure->epoch] } @results; map { [ $_, $_->sched_departure->epoch // $_->departure->epoch ] } @results; $self->render( 'departures', Loading