perltidy
This commit is contained in:
parent
ddbe902384
commit
048a5c1fd5
1 changed files with 10 additions and 7 deletions
11
index.pl
11
index.pl
|
@ -317,8 +317,8 @@ helper 'checkout' => sub {
|
||||||
name => $status->{station_name}
|
name => $status->{station_name}
|
||||||
),
|
),
|
||||||
DateTime->now( time_zone => 'Europe/Berlin' )->epoch,
|
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 ) {
|
if ( defined $success ) {
|
||||||
return;
|
return;
|
||||||
|
@ -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];
|
my $ref = $travels[-1];
|
||||||
$ref->{from_name} = $name;
|
$ref->{from_name} = $name;
|
||||||
$ref->{completed} = 1;
|
$ref->{completed} = 1;
|
||||||
|
@ -705,7 +707,8 @@ get '/*station' => sub {
|
||||||
|
|
||||||
@results = map { $_->[0] }
|
@results = map { $_->[0] }
|
||||||
sort { $b->[1] <=> $a->[1] }
|
sort { $b->[1] <=> $a->[1] }
|
||||||
map { [$_, $_->sched_departure->epoch // $_->departure->epoch] } @results;
|
map { [ $_, $_->sched_departure->epoch // $_->departure->epoch ] }
|
||||||
|
@results;
|
||||||
|
|
||||||
$self->render(
|
$self->render(
|
||||||
'departures',
|
'departures',
|
||||||
|
|
Loading…
Reference in a new issue