From 6b4495943a7b5e59eabd0c5e61ea99ddc77c1b0e Mon Sep 17 00:00:00 2001 From: saint Date: Mon, 9 Sep 2024 16:14:48 +1000 Subject: [PATCH] v0.1 - Added new script for encoding correction --- goss-correctencoding.rb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/goss-correctencoding.rb b/goss-correctencoding.rb index d00b22f..538e0ed 100644 --- a/goss-correctencoding.rb +++ b/goss-correctencoding.rb @@ -64,12 +64,12 @@ class GossamerForumsCorrectEncoding < ImportScripts::Base puts "+++++++ fixed_content:\n#{fixed_content}" puts "---------------------------------------------------------------------------------------------" # post.update(raw: fixed_content) - post.raw = fixed_content - if post.save - puts "Post ##{post.id} updated successfully." - else - puts "Failed to update Post ##{post.id}: #{post.errors.full_messages.join(', ')}" - end +# post.raw = fixed_content +# if post.save +# puts "Post ##{post.id} updated successfully." +# else +# puts "Failed to update Post ##{post.id}: #{post.errors.full_messages.join(', ')}" +# end end end