aboutsummaryrefslogtreecommitdiffstats
path: root/bin/send-reports
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2011-09-21 15:04:50 +0100
committerStruan Donald <struan@exo.org.uk>2011-09-21 15:04:50 +0100
commit252ba7c5bf2317b21a84400beeeeb804d1f81f65 (patch)
tree9d9feb7c788c7acf203f5306593b4a5950e14758 /bin/send-reports
parent132a30e6660ee8ec0b3773e20c71c8dbd5e92e0e (diff)
cache the bing gecode data when we fetch in send-reports
Diffstat (limited to 'bin/send-reports')
-rwxr-xr-xbin/send-reports2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/send-reports b/bin/send-reports
index 9ab6f8274..fc8ee6e45 100755
--- a/bin/send-reports
+++ b/bin/send-reports
@@ -90,7 +90,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);