mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-22 04:35:45 +08:00
更改: 新增旧版参数
This commit is contained in:
@@ -13,7 +13,9 @@ if params[:filepath].present?
|
||||
end
|
||||
else
|
||||
json.file_numbers @compare_result[:total_data].to_i
|
||||
json.files @compare_result[:data] do |file|
|
||||
json.total_addition @compare_result[:data]["total_addition"]
|
||||
json.total_deletion @compare_result[:data]["total_deletion"]
|
||||
json.files @compare_result[:data]["files"] do |file|
|
||||
json.partial! "api/v1/projects/simple_gitea_file", file: file
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user