diff options
author | Birte Kristina Friesel <derf@finalrewind.org> | 2023-09-24 18:20:15 +0200 |
---|---|---|
committer | Birte Kristina Friesel <derf@finalrewind.org> | 2023-09-24 18:20:15 +0200 |
commit | e346f969b0da6496da225186c46cf2c65d1df21f (patch) | |
tree | 62fbf3921b781e983a754eb65b85c7817ae90c94 /lib/Travelynx/Model/InTransit.pm | |
parent | de074342de0bdc3604a0610a0c5f9cce5338bb85 (diff) |
intransit: support HAFAS trains that do not have a type
Diffstat (limited to 'lib/Travelynx/Model/InTransit.pm')
-rw-r--r-- | lib/Travelynx/Model/InTransit.pm | 2 |
1 files changed, 1 insertions, 1 deletions
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, |