v0.14 Code indentation fix and relative path fixes for require at start

This commit is contained in:
David Sainty 2024-06-26 15:26:26 +10:00
parent 30827f69b4
commit fdb69f2d73

View File

@ -1,5 +1,5 @@
# gossamer threads migration-import code # gossamer threads migration-import code
# v0.13 # v0.14
require 'mysql2' require 'mysql2'
require 'open-uri' require 'open-uri'
@ -12,8 +12,8 @@ require 'fileutils'
require 'csv' require 'csv'
require 'time' require 'time'
require File.expand_path("../../../config/environment", __FILE__) require File.expand_path("../../../../config/environment", __FILE__)
require_relative 'base' require_relative '../base'
class GossamerForumsImporter < ImportScripts::Base class GossamerForumsImporter < ImportScripts::Base
def initialize def initialize
@ -549,7 +549,6 @@ def import_topics_and_posts_with_attachments
puts "Error importing topic with post_id #{row['post_id']}: #{e.message}" puts "Error importing topic with post_id #{row['post_id']}: #{e.message}"
end end
end end
else else
puts "#3" puts "#3"
# Find the root topic for the post # Find the root topic for the post