diff options
author | Daniel Friesel <derf@finalrewind.org> | 2012-10-05 18:47:53 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2012-10-05 18:47:53 +0200 |
commit | 2387723d004a00a82ced89e40d422ec56df54117 (patch) | |
tree | 2b994442e65b001b11d25806198ac2ef5a6dc374 | |
parent | 1b3c93c1ee754e23b217c4fbeeb6316eeb204aec (diff) |
filter out '+0' messages
-rw-r--r-- | cgi/index.pl | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/cgi/index.pl b/cgi/index.pl index 71c3def..1318043 100644 --- a/cgi/index.pl +++ b/cgi/index.pl @@ -79,6 +79,11 @@ sub handle_request { if ( @platforms and not grep { $_ eq $platform } @platforms ) { next; } + my $info = $result->info; + + if ($info eq '+0') { + $info = undef; + } push( @departures, { @@ -87,7 +92,7 @@ sub handle_request { via => [ $result->route_interesting(3) ], destination => $result->destination, platform => $platform, - info => $result->info, + info => $info, } ); } |