fix: 与旧版filenums保持一致
This commit is contained in:
		
							parent
							
								
									42171cba21
								
							
						
					
					
						commit
						82e071ecf5
					
				| 
						 | 
					@ -1,7 +1,7 @@
 | 
				
			||||||
if params[:filepath].present? 
 | 
					if params[:filepath].present? 
 | 
				
			||||||
  json.partial! "api/v1/projects/simple_gitea_diff_detail", diff: @result_object
 | 
					  json.partial! "api/v1/projects/simple_gitea_diff_detail", diff: @result_object
 | 
				
			||||||
else
 | 
					else
 | 
				
			||||||
  json.file_numbers @result_object[:total_data].to_i
 | 
					  json.file_nums @result_object[:total_data].to_i
 | 
				
			||||||
  json.total_addition @result_object[:data]["total_addition"]
 | 
					  json.total_addition @result_object[:data]["total_addition"]
 | 
				
			||||||
  json.total_deletion @result_object[:data]["total_deletion"]
 | 
					  json.total_deletion @result_object[:data]["total_deletion"]
 | 
				
			||||||
  json.files @result_object[:data]["files"] do |file|
 | 
					  json.files @result_object[:data]["files"] do |file|
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue