From 3dae12dec19e6984383992ebfb9e280696467bca Mon Sep 17 00:00:00 2001 From: Vinoth Kannan Date: Fri, 19 Apr 2019 21:53:00 +0530 Subject: [PATCH] reduce unlinked count from missing post upload count --- lib/tasks/posts.rake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/tasks/posts.rake b/lib/tasks/posts.rake index cf7de5970c7..c996d2c1812 100644 --- a/lib/tasks/posts.rake +++ b/lib/tasks/posts.rake @@ -464,10 +464,10 @@ task 'posts:missing_uploads' => :environment do end end - puts "", "#{count} post uploads are missing.", "" + puts "", "#{count - unlinked_post_upload_count} post uploads are missing.", "" if count > 0 - puts "#{unlinked_post_upload_count} of #{count} are unlinked post uploads." if unlinked_post_upload_count > 0 + puts "#{unlinked_post_upload_count} are unlinked post uploads." if unlinked_post_upload_count > 0 puts "#{missing_uploads.count} uploads are missing." puts "#{old_scheme_upload_count} of #{missing_uploads.count} are old scheme uploads." if old_scheme_upload_count > 0 puts "#{get_missing_uploads.count} of #{Post.count} posts are affected.", ""