aboutsummaryrefslogtreecommitdiffstats
path: root/bin/send-reports
diff options
context:
space:
mode:
authormatthew <matthew>2007-04-29 18:06:18 +0000
committermatthew <matthew>2007-04-29 18:06:18 +0000
commita3f04ae5e133fcd57fa5744034ba85f2914bebdc (patch)
tree1a1462f0b2e9bb36e222d87f19f380e171f9e1d7 /bin/send-reports
parent4abf2ad6d0dd83caf4c7c7c6efb243af06284885 (diff)
Bugfix the bugfix.
Diffstat (limited to 'bin/send-reports')
-rwxr-xr-xbin/send-reports11
1 files changed, 6 insertions, 5 deletions
diff --git a/bin/send-reports b/bin/send-reports
index c62c06c80..255872317 100755
--- a/bin/send-reports
+++ b/bin/send-reports
@@ -6,7 +6,7 @@
# Copyright (c) 2007 UK Citizens Online Democracy. All rights reserved.
# Email: matthew@mysociety.org. WWW: http://www.mysociety.org
#
-# $Id: send-reports,v 1.34 2007-04-29 18:00:28 matthew Exp $
+# $Id: send-reports,v 1.35 2007-04-29 18:06:18 matthew Exp $
use strict;
require 5.8.0;
@@ -65,10 +65,11 @@ foreach my $row (@$unsent) {
and area_id=? AND category=?", {}, $council, $row->{category});
unless ($confirmed) {
$all_confirmed = 0;
- my $cat = $row->{category} or 'N/A';
- $note = 'Council category deleted' unless $note;
- $notgot{$council_email}{$cat}++;
- $note{$council_email}{$cat} = $note;
+ $note = 'Council ' . $row->{council} . ' deleted'
+ unless $note;
+ $council_email = 'N/A' unless $council_email;
+ $notgot{$council_email}{$row->{category}}++;
+ $note{$council_email}{$row->{category}} = $note;
}
push @to, [ $council_email, $name ];
push @dear, $name;