diff options
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/DBInfoscreen.pm | 4 | ||||
| -rw-r--r-- | lib/DBInfoscreen/Controller/Stationboard.pm | 3 | 
2 files changed, 4 insertions, 3 deletions
| diff --git a/lib/DBInfoscreen.pm b/lib/DBInfoscreen.pm index d8f5b87..9285a82 100644 --- a/lib/DBInfoscreen.pm +++ b/lib/DBInfoscreen.pm @@ -68,8 +68,8 @@ sub startup {  				scalar read_file('share/ice_type.json') );  			my $ret;  			while ( my ( $k, $v ) = each %{$ice_type_map} ) { -				if ( $v->{short} ) { -					$ret->{$k} = $v->{short}; +				if ( $v->{type} ) { +					$ret->{$k} = [ $v->{type}, $v->{short} ];  				}  			}  			return $ret; diff --git a/lib/DBInfoscreen/Controller/Stationboard.pm b/lib/DBInfoscreen/Controller/Stationboard.pm index 60caf8d..9f0bd31 100644 --- a/lib/DBInfoscreen/Controller/Stationboard.pm +++ b/lib/DBInfoscreen/Controller/Stationboard.pm @@ -1258,7 +1258,8 @@ sub handle_request {  				'_train_details',  				departure => $departure,  				linetype  => $linetype, -				dt_now    => DateTime->now( time_zone => 'Europe/Berlin' ), +				icetype => $self->app->ice_type_map->{ $departure->{train_no} }, +				dt_now  => DateTime->now( time_zone => 'Europe/Berlin' ),  			);  		}  		else { | 
