aboutsummaryrefslogtreecommitdiffstats
path: root/bin/send-reports
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2011-01-18 23:39:32 +0000
committerMatthew Somerville <matthew@mysociety.org>2011-01-18 23:40:02 +0000
commit66a14c3f2d63db568e4b4cf82f4abfdfcbb9edfd (patch)
treedbaf61ad3fdd2084d184ce5984789abbf29b5d85 /bin/send-reports
parent73a8e2e73165212fc43e642c3f1bf76f2513d4e8 (diff)
Remove Dress.
Diffstat (limited to 'bin/send-reports')
-rwxr-xr-xbin/send-reports10
1 files changed, 1 insertions, 9 deletions
diff --git a/bin/send-reports b/bin/send-reports
index c91de5e33..d61269d96 100755
--- a/bin/send-reports
+++ b/bin/send-reports
@@ -43,8 +43,6 @@ BEGIN {
);
}
-use mySociety::Dress; # Has to come after the BEGIN, my poor coding
-
# Set up site, language etc.
my ($verbose, $nomail) = CronFns::options();
my $base_url = mySociety::Config::get('BASE_URL');
@@ -96,13 +94,7 @@ foreach my $row (@$unsent) {
$h{fuzzy} = $row->{used_map} ? _('To view a map of the precise location of this issue')
: _('The user could not locate the problem on a map, but to see the area around the location they entered');
$h{closest_address} = '';
- my ($address, $distance) = mySociety::Dress::find_nearest($row->{easting}, $row->{northing});
- if ($address) {
- $h{closest_address} = sprintf(_("The closest address, as the crow flies, to the location of this problem, %.0fm away, is: %s - please note that this is automatically generated, so ensure that you check it against the details provided by the user and, if possible, the map.") . "\n\n",
- $distance, $address);
- ($h{closest_address_machine} = $h{closest_address}) =~ s/is: /is:\n\n/;
- $h{closest_address_machine} =~ s/ - please note/\n\n - please note/;
- }
+ $h{closest_address_machine} = '';
my (@to, @recips, $template, $areas_info);
if ($site eq 'emptyhomes') {