aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/Script/UpdateAllReports.pm
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2019-02-25 12:18:00 +0000
committerMatthew Somerville <matthew-github@dracos.co.uk>2019-02-25 12:18:00 +0000
commite481c2fd127c46024b1b15587981dca00eada44c (patch)
tree9b3884e8904e9e63d1b39bea4eae5f9c12009c92 /perllib/FixMyStreet/Script/UpdateAllReports.pm
parent7f41c1b26110e18c0068bcd9e209daebe26b6779 (diff)
parentb9e1b1384b11acbd5d9fd51e92eb7278fb6eb43d (diff)
Merge branch 'bugfix/1957'
Diffstat (limited to 'perllib/FixMyStreet/Script/UpdateAllReports.pm')
-rwxr-xr-xperllib/FixMyStreet/Script/UpdateAllReports.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/Script/UpdateAllReports.pm b/perllib/FixMyStreet/Script/UpdateAllReports.pm
index e3ea63e6e..33665b9da 100755
--- a/perllib/FixMyStreet/Script/UpdateAllReports.pm
+++ b/perllib/FixMyStreet/Script/UpdateAllReports.pm
@@ -269,7 +269,7 @@ sub calculate_top_five_bodies {
my $bodies = FixMyStreet::DB->resultset('Body')->search;
while (my $body = $bodies->next) {
- my $avg = $body->calculate_average;
+ my $avg = $body->calculate_average($cobrand_cls->call_hook("body_responsiveness_threshold"));
push @top_five_bodies, { name => $body->name, days => int($avg / 60 / 60 / 24 + 0.5) }
if defined $avg;
}