From 03fe2757f36618737a557bd7b4cfdfe3dd367829 Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Wed, 28 Aug 2024 17:27:11 +0200 Subject: Replace ice_names.json with Travel::Status::DE::DBWagenreihung built-in list --- lib/Travelynx.pm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'lib/Travelynx.pm') diff --git a/lib/Travelynx.pm b/lib/Travelynx.pm index 6ee21b3..846e865 100755 --- a/lib/Travelynx.pm +++ b/lib/Travelynx.pm @@ -181,8 +181,10 @@ sub startup { # via https://github.com/marudor/bahn.expert/blob/main/src/server/coachSequence/TrainNames.ts $self->attr( ice_name => sub { - my $id_to_name = JSON->new->utf8->decode( - scalar read_file('share/ice_names.json') ); + state $id_to_name = { + Travel::Status::DE::DBWagenreihung::Group::name_to_designation( + ) + }; return $id_to_name; } ); -- cgit v1.2.3