From 0574f8252baa185d51442db7d60d9b39259254b1 Mon Sep 17 00:00:00 2001 From: Yuki Date: Tue, 28 Apr 2015 14:23:06 +0530 Subject: [PATCH] Extra butter --- Rakefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Rakefile b/Rakefile index b3f3c902..592111a6 100644 --- a/Rakefile +++ b/Rakefile @@ -245,7 +245,7 @@ namespace :justask do progress = ProgressBar.create title: 'Processing reports', format: format, starting_at: 0, total: total destroyed = 0 Report.all.each do |r| - if r.target.nil? + if r.target.nil? and not r.deleted? r.deleted = true r.save destroyed += 1 @@ -324,7 +324,7 @@ namespace :justask do total = Report.count progress = ProgressBar.create title: 'Processing reports', format: format, starting_at: 0, total: total Report.all.each do |r| - if r.target.nil? + if r.target.nil? and not r.deleted? r.deleted = true r.save destroyed_count[:report] += 1