修改项目得分

This commit is contained in:
huang 2015-12-23 17:29:40 +08:00
parent 19f84b111b
commit 055fac5e27
1 changed files with 3 additions and 3 deletions

View File

@ -22,10 +22,10 @@ module ProjectScoreHelper
#代码提交数量
def changesets_num project
# g = Gitlab.client
# project.gpid.nil? ? 0 : g.commits_total_count(project.gpid).count
g = Gitlab.client
project.gpid.nil? ? 0 : g.commits_total_count(project.gpid).count
# # commits_total_count(project.gpid)
project.changesets.count
# project.changesets.count
end
#讨论区帖子数量