aboutsummaryrefslogtreecommitdiffstats
path: root/lib/tasks
diff options
context:
space:
mode:
Diffstat (limited to 'lib/tasks')
-rw-r--r--lib/tasks/stats.rake4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/tasks/stats.rake b/lib/tasks/stats.rake
index 1242575fe..2a02b1716 100644
--- a/lib/tasks/stats.rake
+++ b/lib/tasks/stats.rake
@@ -93,8 +93,10 @@ namespace :stats do
desc 'Update statistics in the public_bodies table'
task :update_public_bodies_stats => :environment do
+ verbose = ENV['VERBOSE'] == '1'
PublicBody.all.each do |public_body|
- puts "Counting overdue requests for #{public_body.name}"
+ puts "Counting overdue requests for #{public_body.name}" if verbose
+
# Look for values of 'waiting_response_overdue' and
# 'waiting_response_very_overdue' which aren't directly in the
# described_state column, and instead need to be calculated: