From af520c8bdb9525274c1a47602b796ce808718a19 Mon Sep 17 00:00:00 2001 From: saint Date: Sat, 7 Dec 2024 13:29:10 +1100 Subject: [PATCH] Improve goss-restorethread.rb to allow for restoring a given Gossamer Forums Forum Post / OP post_id --- goss-restorethread.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/goss-restorethread.rb b/goss-restorethread.rb index 08c0e50..75641f3 100644 --- a/goss-restorethread.rb +++ b/goss-restorethread.rb @@ -277,6 +277,7 @@ class GossamerForumsImporter < ImportScripts::Base end def update_db_topic_last_post_time(topic_id, last_post_time) + puts "zzzzzzzzz1 #{topic_id} #{last_post_time}" @db.execute "INSERT OR REPLACE INTO topic_last_post_time_final2 (topic_id, last_post_time) VALUES (?, ?)", topic_id, last_post_time end @@ -1382,7 +1383,7 @@ class GossamerForumsImporter < ImportScripts::Base sqlite_mutex.synchronize do # Update the database with the last post time and user for the topic - puts "zzzz1" + puts "zzzz1 #{current_topic_id} #{Time.at(row['post_time']).to_i}" update_db_topic_last_post_time(current_topic_id, Time.at(row['post_time']).to_i) update_db_topic_last_post_user(current_topic_id, discourse_user_id) puts "zzzz2"