This commit is contained in:
huang 2015-12-18 20:53:32 +08:00
parent dae6e68623
commit 5941d41b19
1 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,7 @@ module ProjectScoreHelper
#代码提交数量
def changesets_num project
g = Gitlab.client
project.gpid.nil? ? 0 : g.commits_total_count(project.gpid)
project.gpid.nil? ? 0 : g.commits_total_count(project.gpid)["count"]
# # commits_total_count(project.gpid)
# project.changesets.count
end