From e346f969b0da6496da225186c46cf2c65d1df21f Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Sun, 24 Sep 2023 18:20:15 +0200 Subject: [PATCH] intransit: support HAFAS trains that do not have a type --- lib/Travelynx/Model/InTransit.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Travelynx/Model/InTransit.pm b/lib/Travelynx/Model/InTransit.pm index 9899676..adcdfa3 100644 --- a/lib/Travelynx/Model/InTransit.pm +++ b/lib/Travelynx/Model/InTransit.pm @@ -150,7 +150,7 @@ sub add { checkin_station_id => $stop->eva, checkin_time => DateTime->now( time_zone => 'Europe/Berlin' ), dep_platform => $stop->{platform}, - train_type => $journey->type, + train_type => $journey->type // q{}, train_line => $journey->line_no, train_no => $journey->number // q{}, train_id => $journey->id,