aboutsummaryrefslogtreecommitdiffstats
path: root/bin/update-all-reports
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2018-01-02 12:25:50 +0000
committerMatthew Somerville <matthew-github@dracos.co.uk>2018-01-03 14:22:30 +0000
commitc900b5057c6d3a9c389a0d0ac8524ab2e3abd8f8 (patch)
tree02b49c7f2705ae733b7a12006c60a235fb5ebf27 /bin/update-all-reports
parent39e549b3e1978cc5d6b29ba37f57ca90d3c391cb (diff)
Add some new Body model helper methods.
And use the existing ones more.
Diffstat (limited to 'bin/update-all-reports')
-rwxr-xr-xbin/update-all-reports2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/update-all-reports b/bin/update-all-reports
index 1225a4c08..087c59d06 100755
--- a/bin/update-all-reports
+++ b/bin/update-all-reports
@@ -37,7 +37,7 @@ if ($opt->table) {
$data = FixMyStreet::Script::UpdateAllReports::generate($opt->areas);
output('all-reports', $data);
} elsif ($opt->all_bodies) {
- my $bodies = FixMyStreet::DB->resultset("Body")->search({ deleted => 0 });
+ my $bodies = FixMyStreet::DB->resultset("Body")->active;
while (my $body = $bodies->next) {
next unless $body->body_areas->first;
my $data = FixMyStreet::Script::UpdateAllReports::generate_dashboard($body);