v0.60 Final tweak for topic and user count updating for last public posts
This commit is contained in:
parent
9f6f71d197
commit
8814b3f76c
Binary file not shown.
@ -1948,7 +1948,7 @@ class GossamerForumsImporter < ImportScripts::Base
|
||||
user = User.find(user_id)
|
||||
current_trust_level = user.trust_level
|
||||
|
||||
if user.id = 2
|
||||
if user.id == 2
|
||||
puts "USER ID 2, so TRUST LEVEL 4"
|
||||
new_trust_level = 4
|
||||
end
|
||||
@ -1961,7 +1961,8 @@ class GossamerForumsImporter < ImportScripts::Base
|
||||
puts "update_user_stats user_id #{user_id} trust_level remains at #{current_trust_level}"
|
||||
end
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user