Holy shit I'm stupid
This commit is contained in:
parent
1233e108e4
commit
19732378a2
4
Rakefile
4
Rakefile
|
@ -238,7 +238,7 @@ namespace :justask do
|
||||||
end
|
end
|
||||||
|
|
||||||
desc "Fixes reports"
|
desc "Fixes reports"
|
||||||
task fix_reports: :enviornment do
|
task fix_reports: :environment do
|
||||||
format = '%t (%c/%C) [%b>%i] %e'
|
format = '%t (%c/%C) [%b>%i] %e'
|
||||||
|
|
||||||
total = Report.count
|
total = Report.count
|
||||||
|
@ -249,6 +249,7 @@ namespace :justask do
|
||||||
r.deleted = true
|
r.deleted = true
|
||||||
r.save
|
r.save
|
||||||
destroyed += 1
|
destroyed += 1
|
||||||
|
end
|
||||||
progress.increment
|
progress.increment
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -327,6 +328,7 @@ namespace :justask do
|
||||||
r.deleted = true
|
r.deleted = true
|
||||||
r.save
|
r.save
|
||||||
destroyed_count[:report] += 1
|
destroyed_count[:report] += 1
|
||||||
|
end
|
||||||
progress.increment
|
progress.increment
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue