diff options
author | Birte Kristina Friesel <derf@finalrewind.org> | 2024-08-28 17:27:11 +0200 |
---|---|---|
committer | Birte Kristina Friesel <derf@finalrewind.org> | 2024-08-28 17:27:11 +0200 |
commit | 03fe2757f36618737a557bd7b4cfdfe3dd367829 (patch) | |
tree | f2307f4e5ded42880b682d9fbef0fa1ef9b81e9f /lib | |
parent | 5192d997ded949df5fd81ff40f9a193ba806dc3b (diff) |
Replace ice_names.json with Travel::Status::DE::DBWagenreihung built-in list
Diffstat (limited to 'lib')
-rwxr-xr-x | lib/Travelynx.pm | 6 |
1 files changed, 4 insertions, 2 deletions
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; } ); |