This commit is contained in:
parent
dae6e68623
commit
5941d41b19
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue