From ca6add94fd894d625f08314acaae5da0f7587dd3 Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Sat, 10 Aug 2024 16:49:26 +0200 Subject: Group: Correctly set group name (it's not part of the transport dict) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Closes #1 Thanks to Caß Dingenskirchen! --- lib/Travel/Status/DE/DBWagenreihung/Group.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/Travel/Status/DE/DBWagenreihung') diff --git a/lib/Travel/Status/DE/DBWagenreihung/Group.pm b/lib/Travel/Status/DE/DBWagenreihung/Group.pm index 6ac1109..58beaf4 100644 --- a/lib/Travel/Status/DE/DBWagenreihung/Group.pm +++ b/lib/Travel/Status/DE/DBWagenreihung/Group.pm @@ -84,7 +84,7 @@ sub new { carriages => $opt{carriages}, destination => $json{transport}{destination}{name}, train_type => $json{transport}{category}, - name => $json{transport}{name}, + name => $json{name}, line => $json{transport}{numberwline}, train_no => $json{transport}{number}, }; -- cgit v1.2.3