diff options
author | Gareth Rees <gareth@mysociety.org> | 2014-05-01 14:17:59 +0100 |
---|---|---|
committer | Gareth Rees <gareth@mysociety.org> | 2014-05-01 14:20:42 +0100 |
commit | 38d579b9eacecf0907b946b2b845fb5766af7bd6 (patch) | |
tree | 24d8fece510953ccc17624c221f1b8cc857c37f8 | |
parent | f748f59473028c79453a64a4ccd26afa5bbbb8a8 (diff) |
Remove Total Requests from quarterly stats
Was confusing what the number meant; easier to just sum numbers in the
quartery columns to get totals.
-rw-r--r-- | lib/tasks/stats.rake | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/tasks/stats.rake b/lib/tasks/stats.rake index d32dfa94d..f09594529 100644 --- a/lib/tasks/stats.rake +++ b/lib/tasks/stats.rake @@ -98,7 +98,7 @@ namespace :stats do end desc <<-DESC -Prints the total and per-quarter number of created FOI Requests made to each Public Body found by the query. +Prints the per-quarter number of created FOI Requests made to each Public Body found by the query. Specify the search query as QUERY='london school' DESC task :number_of_requests_created => :environment do @@ -109,7 +109,7 @@ DESC quarters = DateQuarter.quarters_between(start_at, finish_at) # Headers - headers = ['Body', 'Total Requests'] + quarters.map { |date_tuple| date_tuple.join('~') } + headers = ['Body'] + quarters.map { |date_tuple| date_tuple.join('~') } puts headers.join(",") public_bodies.each do |body| @@ -119,13 +119,13 @@ DESC count ? count : 0 end - row = [body.name, body.info_requests_count] + stats + row = [body.name] + stats puts row.join(",") end end desc <<-DESC -Prints the total and per-quarter number of successful FOI Requests made to each Public Body found by the query. +Prints the per-quarter number of successful FOI Requests made to each Public Body found by the query. Specify the search query as QUERY='london school' DESC task :number_of_requests_successful => :environment do @@ -136,7 +136,7 @@ DESC quarters = DateQuarter.quarters_between(start_at, finish_at) # Headers - headers = ['Body', 'Total Requests'] + quarters.map { |date_tuple| date_tuple.join('~') } + headers = ['Body'] + quarters.map { |date_tuple| date_tuple.join('~') } puts headers.join(",") public_bodies.each do |body| @@ -147,7 +147,7 @@ DESC count ? count : 0 end - row = [body.name, body.info_requests_count] + stats + row = [body.name] + stats puts row.join(",") end end |