diff options
Diffstat (limited to 'web/reports.cgi')
-rwxr-xr-x | web/reports.cgi | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/web/reports.cgi b/web/reports.cgi index 913a1fbaf..45194e32e 100755 --- a/web/reports.cgi +++ b/web/reports.cgi @@ -7,7 +7,7 @@ # Copyright (c) 2007 UK Citizens Online Democracy. All rights reserved. # Email: matthew@mysociety.org. WWW: http://www.mysociety.org # -# $Id: reports.cgi,v 1.21 2008-10-15 22:07:26 matthew Exp $ +# $Id: reports.cgi,v 1.22 2008-11-17 17:52:16 matthew Exp $ use strict; use Standard; @@ -108,7 +108,9 @@ sub main { %councils = ( $one_council => 1 ); } else { # Show all councils on main report page - my @types = grep { !/LGD/ } @$mySociety::VotingArea::council_parent_types; + $ignore = 'LGD'; + $ignore .= '|CTY' if $q->{site} eq 'emptyhomes'; + my @types = grep { !/$ignore/ } @$mySociety::VotingArea::council_parent_types; %councils = map { $_ => 1 } @{mySociety::MaPit::get_areas_by_type(\@types)}; } |