aboutsummaryrefslogtreecommitdiffstats
path: root/perllib
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2013-02-21 10:38:47 +0000
committerMatthew Somerville <matthew@mysociety.org>2013-02-21 10:38:47 +0000
commit1c4a5f28dd91048e31111889073f896888c1a527 (patch)
treef9179c1e38d593f4778b522d0a8aebab320cfe24 /perllib
parentb2584382a67ed23efcfb089ddd4c38c5b6ebe240 (diff)
Include reports total on Zurich stats page.
Diffstat (limited to 'perllib')
-rw-r--r--perllib/FixMyStreet/Cobrand/Zurich.pm3
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,