From efb56dba7e834688d87b71435fca730f833f4b16 Mon Sep 17 00:00:00 2001 From: saint Date: Mon, 1 Jul 2024 16:30:44 +1000 Subject: [PATCH] v0.22.3 Add debug output for attachment processing --- gossamer_forums.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/gossamer_forums.rb b/gossamer_forums.rb index 7cea95a..f58e661 100644 --- a/gossamer_forums.rb +++ b/gossamer_forums.rb @@ -1,5 +1,5 @@ # gossamer threads migration-import code -# v0.22.2 +# v0.22.3 require 'mysql2' require 'open-uri' @@ -799,9 +799,9 @@ class GossamerForumsImporter < ImportScripts::Base post_id = row['post_id'].to_i # Skip posts that have already been processed -# FIX THIS PROPERLY FOR FUTURE RUNS - next if post_id < highest_old_post_id -# next if post_id <= highest_processed_post_id +# FIXED PROPERLY FOR FUTURE RUNS +# next if post_id < highest_old_post_id + next if post_id <= highest_processed_post_id puts "Processing post_id #{row['post_id']} post_id #{row['post_root_id']} post_subject/title #{row['post_subject']} forum_id_fk/category_id #{row['forum_id_fk']}" # discourse_user_id = @user_id_map[row['user_id_fk']] @@ -1030,7 +1030,7 @@ class GossamerForumsImporter < ImportScripts::Base user = User.find(user_id) user.update!(post_count: count) end - + end # Import personal messages from gforum_Message table (both inbox and sent messages)