aboutsummaryrefslogtreecommitdiffstats
path: root/bin/send-reports
diff options
context:
space:
mode:
authormatthew <matthew>2009-01-14 12:21:08 +0000
committermatthew <matthew>2009-01-14 12:21:08 +0000
commitfa21ab2334aec3bb937305c84db9a366c3661cd3 (patch)
treede9e654d1209719fac1a57316363853bddbbb0be /bin/send-reports
parent1fb055ccdc9c36bdf123fd96535c3c97d7f39672 (diff)
Notts back to one email address.
Diffstat (limited to 'bin/send-reports')
-rwxr-xr-xbin/send-reports17
1 files changed, 1 insertions, 16 deletions
diff --git a/bin/send-reports b/bin/send-reports
index a2e64d3c5..d2a1fe5d7 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.63 2008-11-19 19:06:02 matthew Exp $
+# $Id: send-reports,v 1.64 2009-01-14 12:21:08 matthew Exp $
use strict;
require 5.8.0;
@@ -132,7 +132,6 @@ foreach my $row (@$unsent) {
"SELECT email,confirmed,note FROM contacts WHERE deleted='f'
and area_id=? AND category=?", {}, $council, $row->{category});
$council_email = essex_contact($row->{easting}, $row->{northing}) if $council == 2225;
- $council_email = notts_contact($row->{easting}, $row->{northing}) if $council == 2236;
unless ($confirmed) {
$all_confirmed = 0;
$note = 'Council ' . $row->{council} . ' deleted'
@@ -249,20 +248,6 @@ sub essex_contact {
return "highways.$email\@essexcc.gov.uk";
}
-# Notts has different contact addresses depending upon the district
-sub notts_contact {
- my ($E, $N) = @_;
- my $district = mySociety::MaPit::get_voting_areas_by_location({easting=>$E, northing=>$N}, 'polygon', 'DIS');
- ($district) = keys %$district;
- my $email;
- $email = 'cshighsouth.en' if $district == 2411 || $district == 2412 || $district == 2415;
- $email = 'etwall' if $district == 2413 || $district == 2416;
- $email = 'bassetlawao' if $district == 2410;
- $email = 'newarkao' if $district == 2414;
- die "Returned district $district which is not in Nottinghamshire!" unless $email;
- return "$email\@nottscc.gov.uk";
-}
-
sub construct_easthants_message {
my %h = @_;
my $message = '';