v0.60 Final tweak for topic and user count updating for last public posts

This commit is contained in:
David Sainty 2024-09-02 17:47:18 +10:00
parent 9f6f71d197
commit 8814b3f76c
2 changed files with 3 additions and 2 deletions

Binary file not shown.

View File

@ -1948,7 +1948,7 @@ class GossamerForumsImporter < ImportScripts::Base
user = User.find(user_id) user = User.find(user_id)
current_trust_level = user.trust_level current_trust_level = user.trust_level
if user.id = 2 if user.id == 2
puts "USER ID 2, so TRUST LEVEL 4" puts "USER ID 2, so TRUST LEVEL 4"
new_trust_level = 4 new_trust_level = 4
end end
@ -1961,7 +1961,8 @@ class GossamerForumsImporter < ImportScripts::Base
puts "update_user_stats user_id #{user_id} trust_level remains at #{current_trust_level}" puts "update_user_stats user_id #{user_id} trust_level remains at #{current_trust_level}"
end end
rescue rescue
puts "WARNING: Could not find or modify User with id=#{user_id}. Skipping..." puts "WARNING: Could not find or modify User with id=#{user_id}: #{e.message} ... Skipping..."
puts e.backtrace.join("\n") # Print the full stack trace
end end
end end
end end