diff --git a/Rakefile b/Rakefile index 174dded1..b3f3c902 100644 --- a/Rakefile +++ b/Rakefile @@ -238,7 +238,7 @@ namespace :justask do end desc "Fixes reports" - task fix_reports: :enviornment do + task fix_reports: :environment do format = '%t (%c/%C) [%b>%i] %e' total = Report.count @@ -249,6 +249,7 @@ namespace :justask do r.deleted = true r.save destroyed += 1 + end progress.increment end @@ -327,6 +328,7 @@ namespace :justask do r.deleted = true r.save destroyed_count[:report] += 1 + end progress.increment end