[ADD]统计平台概况

[FIX]更改请求参数

[FIX]

[ADD]rank statistic

[FIX]
This commit is contained in:
2021-01-07 14:07:26 +08:00
parent 713b249fa5
commit c00336e7b5
20 changed files with 371 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
json.total_count @active_developer_rank_query.size
json.developers @active_developer_rank_query.each_with_index.to_a do |item, index|
user = User.find_by(login: item["develop_name"])
projects = user.projects
json.no index + 1
json.login item["develop_name"]
json.name user.full_name
json.develop_projects projects do |project|
json.(project, :name, :identifier, :description)
end
json.total_commit_count item["total_count"]
json.active_commit_count item["active_count"]
end