summaryrefslogtreecommitdiff
path: root/lib/DBInfoscreen/Controller
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2020-09-08 18:07:01 +0200
committerDaniel Friesel <derf@finalrewind.org>2020-09-08 18:07:01 +0200
commit8f657f59c7c306040f39057c02f705bb4a0c3158 (patch)
treea104fe056121c1c2bb2f1d509719dc478e7508c5 /lib/DBInfoscreen/Controller
parent44cdac57eed0f02c8801ed85d08be4e7daead991 (diff)
always calculate tripid via trainsearch.exe
Diffstat (limited to 'lib/DBInfoscreen/Controller')
-rw-r--r--lib/DBInfoscreen/Controller/Stationboard.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/DBInfoscreen/Controller/Stationboard.pm b/lib/DBInfoscreen/Controller/Stationboard.pm
index f8426c5..c2aa613 100644
--- a/lib/DBInfoscreen/Controller/Stationboard.pm
+++ b/lib/DBInfoscreen/Controller/Stationboard.pm
@@ -412,8 +412,6 @@ sub render_train {
)
];
- $departure->{trip_id} = $self->hafas->get_tripid($result);
-
if ( $departure->{wr_link}
and
not $self->wagonorder->is_available( $result, $departure->{wr_link} ) )
@@ -421,9 +419,11 @@ sub render_train {
$departure->{wr_link} = undef;
}
- my ( $route_ts, $route_info )
+ my ( $route_ts, $route_info, $trainsearch )
= $self->hafas->get_route_timestamps( train => $result );
+ $departure->{trip_id} = $trainsearch->{trip_id};
+
# If a train number changes on the way, IRIS routes are incomplete,
# whereas HAFAS data has all stops -> merge HAFAS stops into IRIS
# stops. This is a rare case, one point where it can be observed is