还原提交次数
This commit is contained in:
parent
4dda355d2e
commit
e673540323
|
@ -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
|
||||
|
||||
#讨论区帖子数量
|
||||
|
|
Loading…
Reference in New Issue