always show 'run' icon when an interchange is short

This commit is contained in:
Daniel Friesel 2022-09-23 17:32:27 +02:00
parent 65eaa9ffbe
commit 6bae226d5c
No known key found for this signature in database
GPG key ID: 100D5BFB5166E005

View file

@ -206,7 +206,7 @@ sub get_connecting_trains_p {
= ( $train->departure->epoch - $arr_epoch ) / 60; = ( $train->departure->epoch - $arr_epoch ) / 60;
if ( $interchange_time < $interchange_duration ) { if ( $interchange_time < $interchange_duration ) {
$train->{interchange_text} = 'Anschluss knapp'; $train->{interchange_text} = 'Anschluss knapp';
$train->{interchange_icon} = 'warning'; $train->{interchange_icon} = 'directions_run';
} }
elsif ( $interchange_time == $interchange_duration ) { elsif ( $interchange_time == $interchange_duration ) {
$train->{interchange_text} $train->{interchange_text}