show connections up to 40 minutes before arrival (rather than just 20)

This commit is contained in:
Daniel Friesel 2022-08-26 18:38:54 +02:00
parent b4a31cbc46
commit ff317c5c2a

View file

@ -219,7 +219,7 @@ sub homepage {
my $status = $self->get_user_status; my $status = $self->get_user_status;
if ( $status->{checked_in} ) { if ( $status->{checked_in} ) {
if ( defined $status->{arrival_countdown} if ( defined $status->{arrival_countdown}
and $status->{arrival_countdown} < ( 20 * 60 ) ) and $status->{arrival_countdown} < ( 40 * 60 ) )
{ {
$self->render_later; $self->render_later;
$self->get_connecting_trains_p->then( $self->get_connecting_trains_p->then(
@ -587,7 +587,7 @@ sub status_card {
if ( $status->{checked_in} ) { if ( $status->{checked_in} ) {
if ( defined $status->{arrival_countdown} if ( defined $status->{arrival_countdown}
and $status->{arrival_countdown} < ( 20 * 60 ) ) and $status->{arrival_countdown} < ( 40 * 60 ) )
{ {
$self->render_later; $self->render_later;
$self->get_connecting_trains_p->then( $self->get_connecting_trains_p->then(