v0.1 - Added new script for encoding correction
This commit is contained in:
parent
4f6d4ef5e7
commit
6b4495943a
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user