From 1ae297ba749b886184f8462450d6633767ec41d0 Mon Sep 17 00:00:00 2001 From: saint Date: Fri, 16 Aug 2024 01:16:32 +1000 Subject: [PATCH] v0.36.7 Tweak for re-running as of 20240816 --- gossamer_forums.rb | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/gossamer_forums.rb b/gossamer_forums.rb index 36d5e21..cd353c8 100644 --- a/gossamer_forums.rb +++ b/gossamer_forums.rb @@ -1,7 +1,7 @@ # Federated Computer, Inc. # David Sainty 2024 A.D. # Gossamer Threads to Discourse -- Migration-Import Script -# v0.36.6 Disable TIFF support for now. It was a minor corner case to support. Added other image types. Added exception handling back to user image handling. +# v0.36.7 Tweak for re-running as of 20240816 require 'mysql2' require 'open-uri' @@ -610,10 +610,10 @@ class GossamerForumsImporter < ImportScripts::Base discourse_user.user_profile.save! # Import user files -# TEMPORARY!! - if user[:id] > 353 - import_user_files(discourse_user) - end +# TEMPORARY!! -- Use if script is interrupted mid-user-importing. +# if user[:id] > 353 + import_user_files(discourse_user) +# end end end @@ -1380,12 +1380,12 @@ class GossamerForumsImporter < ImportScripts::Base puts "Starting Gossamer Forums import... #{timestamp}" - add_former_user - import_users - export_username_mapping_to_csv("gossamer-migration-username-mapping#{timestamp}") - - import_categories - +# add_former_user +# import_users +# export_username_mapping_to_csv("gossamer-migration-username-mapping#{timestamp}") +# +# import_categories +# import_topics_and_posts_with_attachments update_topic_stats update_user_stats