v0.60 Final tweak for topic and user count updating for last public posts
This commit is contained in:
		
										
											Binary file not shown.
										
									
								
							@@ -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
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user