diff options
author | Matthew Somerville <matthew@mysociety.org> | 2012-01-11 13:08:58 +0000 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2012-01-11 13:08:58 +0000 |
commit | ff7fef78693de60db999e3fdb4846077b5950b4f (patch) | |
tree | 8b49297a709879ee9f83b7025c4963b2ecb40469 | |
parent | 8e7ec87a42df23541281a1bc748d69798cf3873e (diff) | |
parent | cd044314f87957043f8837ac6c2cab1ac3dfd871 (diff) |
Merge remote branch 'petter/council-solve-rates'
-rwxr-xr-x | bin/showcouncilrates | 5 |
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"; |