diff options
author | matthew <matthew> | 2007-05-09 19:59:04 +0000 |
---|---|---|
committer | matthew <matthew> | 2007-05-09 19:59:04 +0000 |
commit | e0bb98af712922e563b80cbe1bfcf8d3d49a022d (patch) | |
tree | 775f84ba7f5efe02c148bef6710ea34c0480e029 | |
parent | d6a5aa4a41496006d2ec8f7adf250e57a9374e9e (diff) |
On one council pages, don't show other councils.
-rwxr-xr-x | web/report.cgi | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/web/report.cgi b/web/report.cgi index 76b371cc6..39f3a621e 100755 --- a/web/report.cgi +++ b/web/report.cgi @@ -6,7 +6,7 @@ # Copyright (c) 2007 UK Citizens Online Democracy. All rights reserved. # Email: matthew@mysociety.org. WWW: http://www.mysociety.org # -# $Id: report.cgi,v 1.18 2007-05-09 19:26:09 matthew Exp $ +# $Id: report.cgi,v 1.19 2007-05-09 19:59:04 matthew Exp $ use strict; require 5.8.0; @@ -62,6 +62,7 @@ sub main { my $age = ($row->{age} > 4*7*24*60*60) ? 'old' : 'new'; my $duration = ($row->{duration} > 4*7*24*60*60) ? 'old' : 'new'; foreach (@council) { + next if $one_council && $_ != $one_council; my $entry = [ $row->{id}, $row->{title}, $row->{detail}, scalar @council ]; push @{$fixed{$_}{$duration}}, $entry if $row->{state} eq 'fixed'; |