diff options
author | Daniel Friesel <derf@finalrewind.org> | 2015-06-05 10:41:46 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2015-06-05 10:41:46 +0200 |
commit | 1725719f07c99e7de67fa6b2981d060c1a385d81 (patch) | |
tree | 7689b68cff7f1b4ab10e37ea5c58985a119bd051 /index.pl | |
parent | fecbabe64ddf3dd552ff467a371dc504c3d8c251 (diff) |
clean template: indicate changed platforms
Diffstat (limited to 'index.pl')
-rw-r--r-- | index.pl | 17 |
1 files changed, 9 insertions, 8 deletions
@@ -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 |