Holy shit I'm stupid

This commit is contained in:
Yuki 2015-04-28 14:20:56 +05:30
parent 1233e108e4
commit 19732378a2
1 changed files with 3 additions and 1 deletions

View File

@ -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