summaryrefslogtreecommitdiff
path: root/lib/DBInfoscreen/Controller
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2021-03-20 13:23:50 +0100
committerDaniel Friesel <derf@finalrewind.org>2021-03-20 13:23:50 +0100
commitd3f8cfc5a03db410593fa9df5b22b154b721fad5 (patch)
treeda9ea8462169255e452b784a7915699a1756f802 /lib/DBInfoscreen/Controller
parentbb89800fd5b970c5b12ecfe2ad2318874c97793f (diff)
train_details: do not pass unused data to view
Diffstat (limited to 'lib/DBInfoscreen/Controller')
-rw-r--r--lib/DBInfoscreen/Controller/Stationboard.pm22
1 files changed, 4 insertions, 18 deletions
diff --git a/lib/DBInfoscreen/Controller/Stationboard.pm b/lib/DBInfoscreen/Controller/Stationboard.pm
index 1f42f69..28ab239 100644
--- a/lib/DBInfoscreen/Controller/Stationboard.pm
+++ b/lib/DBInfoscreen/Controller/Stationboard.pm
@@ -886,11 +886,9 @@ sub train_details {
: undef,
departure => $result->departure ? $result->departure->strftime('%H:%M')
: undef,
- train => $result->train,
train_type => $result->type // '',
train_line => $result->line_no,
train_no => $result->train_no,
- via => [ $result->route_interesting(3) ],
destination => $result->destination,
origin => $result->origin,
platform => $result->platform,
@@ -898,22 +896,10 @@ sub train_details {
is_cancelled => $result->is_cancelled,
departure_is_cancelled => $result->departure_is_cancelled,
arrival_is_cancelled => $result->arrival_is_cancelled,
- messages => {
- delay => [
- map { { timestamp => $_->[0], text => $_->[1] } }
- $result->delay_messages
- ],
- qos => [
- map { { timestamp => $_->[0], text => $_->[1] } }
- $result->qos_messages
- ],
- },
- moreinfo => $moreinfo,
- delay => $result->delay,
- route_pre => [ $result->route_pre ],
- route_post => [ $result->route_post ],
- additional_stops => [ $result->additional_stops ],
- canceled_stops => [ $result->canceled_stops ],
+ moreinfo => $moreinfo,
+ delay => $result->delay,
+ route_pre => [ $result->route_pre ],
+ route_post => [ $result->route_post ],
replaced_by =>
[ map { $_->type . q{ } . $_->train_no } $result->replaced_by ],
replacement_for =>