mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-07-10 04:01:29 +08:00
c00336e7b5
[FIX]更改请求参数 [FIX] [ADD]rank statistic [FIX]
10 lines
396 B
Ruby
10 lines
396 B
Ruby
json.total_count @active_project_rank_query.size
|
|
json.projects @active_project_rank_query.each_with_index.to_a do |item, index|
|
|
project = Project.find_by(identifier: item["name"])
|
|
json.no index + 1
|
|
json.identifier item["name"]
|
|
json.name project.name
|
|
json.total_commit_count item["total_count"]
|
|
json.active_commit_count item["active_count"]
|
|
json.member_count project.members.size
|
|
end |