aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2012-01-11 13:08:58 +0000
committerMatthew Somerville <matthew@mysociety.org>2012-01-11 13:08:58 +0000
commitff7fef78693de60db999e3fdb4846077b5950b4f (patch)
tree8b49297a709879ee9f83b7025c4963b2ecb40469
parent8e7ec87a42df23541281a1bc748d69798cf3873e (diff)
parentcd044314f87957043f8837ac6c2cab1ac3dfd871 (diff)
Merge remote branch 'petter/council-solve-rates'
-rwxr-xr-xbin/showcouncilrates5
1 files changed, 3 insertions, 2 deletions
diff --git a/bin/showcouncilrates b/bin/showcouncilrates
index cc8ce8d10..1dacae597 100755
--- a/bin/showcouncilrates
+++ b/bin/showcouncilrates
@@ -26,9 +26,10 @@ BEGIN {
my $query = "SELECT council, COUNT(*) AS total, SUM(fixed) AS fixed
FROM (SELECT council,
- CASE WHEN state = 'fixed' THEN 1 ELSE 0 END AS fixed
+ CASE WHEN state in ('fixed','fixed - user', 'fixed - council')
+ THEN 1 ELSE 0 END AS fixed
FROM problem WHERE confirmed IS NOT NULL AND
- state IN ('fixed', 'confirmed') AND
+ state IN ('fixed', 'fixed - user', 'fixed - council', 'confirmed') AND
whensent < NOW() - INTERVAL '4 weeks') AS a
GROUP BY council";