aboutsummaryrefslogtreecommitdiffstats
path: root/bin/send-reports
diff options
context:
space:
mode:
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') {