aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2011-01-18 23:43:34 +0000
committerMatthew Somerville <matthew@mysociety.org>2011-01-18 23:43:34 +0000
commit5cb1d987e8a7abd25c2a256ad167fcde47b0b2ed (patch)
tree2e6e1afd46cb63c94b80ae72573135896fa17fc5
parent98d5442afa6023449fd984884321e87e2ddae6c2 (diff)
parent66a14c3f2d63db568e4b4cf82f4abfdfcbb9edfd (diff)
Merge branch 'master' into reportemptyhomes
-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') {