diff options
Diffstat (limited to 'bin/update-all-reports')
-rwxr-xr-x | bin/update-all-reports | 2 |
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); |