aboutsummaryrefslogtreecommitdiffstats
path: root/bin/send-reports
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2012-01-10 17:15:24 +0000
committerStruan Donald <struan@exo.org.uk>2012-01-10 17:15:24 +0000
commit6228cc7aa55defdb694d2de05d2a2be282955fe6 (patch)
tree1392fb78e01bd6ab28108de42ccd5f8097340dc8 /bin/send-reports
parent22c0a7367193e947af70ab1bbdfb3268fd1ec3c6 (diff)
parent1955a60586ecd4d6dc7d72de31d01d28230fbb8b (diff)
Merge remote branch 'origin/master' into reportemptyhomes
Diffstat (limited to 'bin/send-reports')
-rwxr-xr-xbin/send-reports6
1 files changed, 5 insertions, 1 deletions
diff --git a/bin/send-reports b/bin/send-reports
index 3d5243990..f1d8c5742 100755
--- a/bin/send-reports
+++ b/bin/send-reports
@@ -92,7 +92,7 @@ while (my $row = $unsent->next) {
}
if ( $row->used_map ) {
- $h{closest_address} = $cobrand->find_closest( $h{latitude}, $h{longitude} );
+ $h{closest_address} = $cobrand->find_closest( $h{latitude}, $h{longitude}, $row );
}
my (@to, @recips, $template, $areas_info, @open311_councils);
@@ -290,6 +290,10 @@ while (my $row = $unsent->next) {
$result *= 0;
} else {
$result *= 1;
+ # temporary fix to resolve some issues with west berks
+ if ( $row->council =~ /2619/ ) {
+ $result *= 0;
+ }
}
}
}