intransit: support HAFAS trains that do not have a type

This commit is contained in:
Birte Kristina Friesel 2023-09-24 18:20:15 +02:00
parent de074342de
commit e346f969b0
No known key found for this signature in database
GPG key ID: 19E6E524EBB177BA

View file

@ -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,