|  |  |  | @ -151,8 +151,8 @@ class ChallengesController < ApplicationController | 
			
		
	
		
			
				
					|  |  |  |  |   def index | 
			
		
	
		
			
				
					|  |  |  |  |     uid_logger("identifier: #{params}") | 
			
		
	
		
			
				
					|  |  |  |  |     # 通过调试发现 这里includes(:games)性能会慢10倍 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |     @challenges = @shixun.challenges.fields_for_list.includes(:games).where("games.user_id" => current_user.id) | 
			
		
	
		
			
				
					|  |  |  |  |     current_myshixun = @shixun.current_myshixun(current_user.id) | 
			
		
	
		
			
				
					|  |  |  |  |     @challenges = @shixun.challenges.includes(:games).where("games.user_id" => (current_myshixun ? current_user.id : nil)) | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |     @editable = current_user.manager_of_shixun?(@shixun) && @shixun.status == 0 | 
			
		
	
		
			
				
					|  |  |  |  |     @user = current_user | 
			
		
	
	
		
			
				
					|  |  |  | 
 |