summaryrefslogtreecommitdiff
path: root/lib/Travelynx/Command
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2019-10-04 23:27:45 +0200
committerDaniel Friesel <derf@finalrewind.org>2019-10-04 23:27:45 +0200
commit6d45533c14a45b548080077bd154ee06af571bf3 (patch)
tree4f197d2e1d47bd3c7e14d22832d637dd455b9e5b /lib/Travelynx/Command
parent3582ba317bdb736b6dc65e32d84fe09e7929ed8f (diff)
mark cancelled stops in checkin view
Diffstat (limited to 'lib/Travelynx/Command')
-rw-r--r--lib/Travelynx/Command/work.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Travelynx/Command/work.pm b/lib/Travelynx/Command/work.pm
index 6970918..b9a8520 100644
--- a/lib/Travelynx/Command/work.pm
+++ b/lib/Travelynx/Command/work.pm
@@ -56,7 +56,7 @@ sub run {
dep_platform => $train->platform,
real_departure => $train->departure,
route =>
- $json->encode( [ map { [$_] } $train->route ] ),
+ $json->encode( [ $self->app->route_diff($train) ] ),
messages => $json->encode(
[
map { [ $_->[0]->epoch, $_->[1] ] }
@@ -103,7 +103,7 @@ sub run {
sched_arrival => $train->sched_arrival,
real_arrival => $train->arrival,
route =>
- $json->encode( [ map { [$_] } $train->route ] ),
+ $json->encode( [ $self->app->route_diff($train) ] ),
messages => $json->encode(
[
map { [ $_->[0]->epoch, $_->[1] ] }