summaryrefslogtreecommitdiff
path: root/index.pl
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2015-04-28 11:59:54 +0200
committerDaniel Friesel <derf@finalrewind.org>2015-04-28 11:59:54 +0200
commitf692717e7148365813d3f65b7b350e6090159293 (patch)
tree53f7aa851187efc6fe37af1f8b22bf255a6c8b50 /index.pl
parent2813f25668ba9844d00d3f40181f839ecebf38e4 (diff)
add replacement infos to clean display0.06
Diffstat (limited to 'index.pl')
-rw-r--r--index.pl4
1 files changed, 4 insertions, 0 deletions
diff --git a/index.pl b/index.pl
index f76991c..f779291 100644
--- a/index.pl
+++ b/index.pl
@@ -440,6 +440,10 @@ sub handle_request {
delay => $delay,
additional_stops => [ $result->additional_stops ],
canceled_stops => [ $result->canceled_stops ],
+ replaced_by => $result->can('replaced_by')
+ ? [ map { $_->type . q{ } . $_->train_no } $result->replaced_by ] : [],
+ replacement_for => $result->can('replacement_for')
+ ? [ map { $_->type . q{ } . $_->train_no } $result->replacement_for ] : [],
}
);
}