aboutsummaryrefslogtreecommitdiffstats
path: root/lib/tasks
diff options
context:
space:
mode:
authorGareth Rees <gareth@mysociety.org>2014-05-01 14:17:59 +0100
committerGareth Rees <gareth@mysociety.org>2014-05-01 14:17:59 +0100
commit6f5e975c65c4429b8a8a0040b7eb3405559acfd0 (patch)
tree7925be20582b5643a243a97b07139853825ae464 /lib/tasks
parent48c60549daf4ba5b94bb164ae27c7d1cbf9110bf (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.
Diffstat (limited to 'lib/tasks')
-rw-r--r--lib/tasks/stats.rake12
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