summaryrefslogtreecommitdiff
path: root/index.pl
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2015-06-05 10:41:46 +0200
committerDaniel Friesel <derf@finalrewind.org>2015-06-05 10:41:46 +0200
commit1725719f07c99e7de67fa6b2981d060c1a385d81 (patch)
tree7689b68cff7f1b4ab10e37ea5c58985a119bd051 /index.pl
parentfecbabe64ddf3dd552ff467a371dc504c3d8c251 (diff)
clean template: indicate changed platforms
Diffstat (limited to 'index.pl')
-rw-r--r--index.pl17
1 files changed, 9 insertions, 8 deletions
diff --git a/index.pl b/index.pl
index 46a9c66..b1c61dd 100644
--- a/index.pl
+++ b/index.pl
@@ -116,7 +116,7 @@ helper 'json_route_diff' => sub {
push(
@json_route,
{
- name => $route[ $route_idx ],
+ name => $route[$route_idx],
isAdditional => 1,
isCancelled => 0
}
@@ -127,7 +127,7 @@ helper 'json_route_diff' => sub {
push(
@json_route,
{
- name => $sched_route[ $sched_idx ],
+ name => $sched_route[$sched_idx],
isAdditional => 0,
isCancelled => 1
}
@@ -497,12 +497,13 @@ sub handle_request {
[ $result->sched_route_post ]
)
],
- destination => $result->destination,
- origin => $result->origin,
- platform => $platform,
- info => $info,
- is_cancelled => $result->is_cancelled,
- messages => {
+ destination => $result->destination,
+ origin => $result->origin,
+ platform => $platform,
+ scheduled_platform => $result->sched_platform,
+ info => $info,
+ is_cancelled => $result->is_cancelled,
+ messages => {
delay => [
map { { timestamp => $_->[0], text => $_->[1] } }
$result->delay_messages