Files
gitlink-forgeplus/app/views/statistic/active_project_rank.json.jbuilder
viletyy c00336e7b5 [ADD]统计平台概况
[FIX]更改请求参数

[FIX]

[ADD]rank statistic

[FIX]
2021-02-06 11:15:25 +08:00

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