diff options
author | Matthew Somerville <matthew@mysociety.org> | 2013-02-21 10:38:47 +0000 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2013-02-21 10:38:47 +0000 |
commit | 1c4a5f28dd91048e31111889073f896888c1a527 (patch) | |
tree | f9179c1e38d593f4778b522d0a8aebab320cfe24 /perllib | |
parent | b2584382a67ed23efcfb089ddd4c38c5b6ebe240 (diff) |
Include reports total on Zurich stats page.
Diffstat (limited to 'perllib')
-rw-r--r-- | perllib/FixMyStreet/Cobrand/Zurich.pm | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/Cobrand/Zurich.pm b/perllib/FixMyStreet/Cobrand/Zurich.pm index 75374f0f5..7ac776df2 100644 --- a/perllib/FixMyStreet/Cobrand/Zurich.pm +++ b/perllib/FixMyStreet/Cobrand/Zurich.pm @@ -599,6 +599,8 @@ sub admin_stats { $c->res->body($body); } + # Total reports (non-hidden) + my $total = $c->model('DB::Problem')->search( \%params )->count; # Device for apps (iOS/Android) my $per_service = $c->model('DB::Problem')->search( \%params, { select => [ 'service', { count => 'id' } ], @@ -640,6 +642,7 @@ sub admin_stats { $c->stash( per_service => $per_service, per_category => $per_category, + reports_total => $total, reports_solved => $solved, reports_spam => $hidden, reports_assigned => $closed, |