HAFAS station board: fix station name display

This commit is contained in:
Birte Kristina Friesel 2023-07-09 07:07:31 +02:00
parent 0b5bc869b5
commit b5723264a7
No known key found for this signature in database
GPG key ID: 19E6E524EBB177BA

View file

@ -821,9 +821,10 @@ sub station {
} $status->results;
$status = {
station_eva => $status->station->{eva},
station_name =>
List::Util::reduce { length($a) < length($b) ? $a : $b }
@{ $status->station->{names} },
station_name => (
List::Util::reduce { length($a) < length($b) ? $a : $b }
@{ $status->station->{names} }
),
related_stations => [],
};
}