diff options
author | Joe Siltberg <git@joesiltberg.se> | 2019-02-21 15:38:32 +0100 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2019-02-25 10:08:07 +0000 |
commit | f582e71e03d8d661768b8f977107a87e6bd2d2b8 (patch) | |
tree | 7154b6c0f05159c64cb84c482f2db3a8a9fab7de /perllib/FixMyStreet/Script/UpdateAllReports.pm | |
parent | 1fcda0014022042efb17920699638c30156b04d2 (diff) |
[FixaMinGata] Adds a cobrand hook (threshold for responsiveness top 5 list)
Fixes #1957
Diffstat (limited to 'perllib/FixMyStreet/Script/UpdateAllReports.pm')
-rwxr-xr-x | perllib/FixMyStreet/Script/UpdateAllReports.pm | 2 |
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; } |