intransit: support HAFAS trains that do not have a type
This commit is contained in:
parent
de074342de
commit
e346f969b0
1 changed files with 1 additions and 1 deletions
|
@ -150,7 +150,7 @@ sub add {
|
||||||
checkin_station_id => $stop->eva,
|
checkin_station_id => $stop->eva,
|
||||||
checkin_time => DateTime->now( time_zone => 'Europe/Berlin' ),
|
checkin_time => DateTime->now( time_zone => 'Europe/Berlin' ),
|
||||||
dep_platform => $stop->{platform},
|
dep_platform => $stop->{platform},
|
||||||
train_type => $journey->type,
|
train_type => $journey->type // q{},
|
||||||
train_line => $journey->line_no,
|
train_line => $journey->line_no,
|
||||||
train_no => $journey->number // q{},
|
train_no => $journey->number // q{},
|
||||||
train_id => $journey->id,
|
train_id => $journey->id,
|
||||||
|
|
Loading…
Reference in a new issue