还原提交次数

This commit is contained in:
huang 2015-12-18 18:51:29 +08:00
parent 4dda355d2e
commit e673540323
1 changed files with 4 additions and 4 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)
# commits_total_count(project.gpid)
# project.changesets.count
# g = Gitlab.client
# project.gpid.nil? ? 0 : g.commits_total_count(project.gpid)
# # commits_total_count(project.gpid)
project.changesets.count
end
#讨论区帖子数量