贡献者数量调整
This commit is contained in:
parent
fc4520c06f
commit
a40c5a7619
|
@ -176,6 +176,9 @@ class RepositoriesController < ApplicationController
|
||||||
result = Gitea::Repository::Contributors::GetService.call(@owner, @repository.identifier, {page: params[:page], limit: params[:limit]})
|
result = Gitea::Repository::Contributors::GetService.call(@owner, @repository.identifier, {page: params[:page], limit: params[:limit]})
|
||||||
@total_count = result[:total_count]
|
@total_count = result[:total_count]
|
||||||
@contributors = result.is_a?(Hash) ? result[:body] : []
|
@contributors = result.is_a?(Hash) ? result[:body] : []
|
||||||
|
|
||||||
|
add_contributors_count = EduSetting.get("ProjectAddContributors-#{@project.id}")
|
||||||
|
@total_count = @total_count + add_contributors_count.to_i
|
||||||
end
|
end
|
||||||
rescue
|
rescue
|
||||||
@contributors = []
|
@contributors = []
|
||||||
|
|
Loading…
Reference in New Issue