修复:watchable使用project.owner
This commit is contained in:
parent
4b5df918fc
commit
c7f21fed4f
|
@ -45,7 +45,7 @@ module Watchable
|
|||
score = cal_perc(balance_user, balance_all)
|
||||
else
|
||||
contributors = []
|
||||
result = Gitea::Repository::Contributors::GetService.call(@user, @project.identifier,{q_name: @user.login, q_email: @user.mail})
|
||||
result = Gitea::Repository::Contributors::GetService.call(@project.owner, @project.identifier,{q_name: @user.login, q_email: @user.mail})
|
||||
user_contribution = result[:body][0]
|
||||
commits_all = result[:total_contributions]
|
||||
score = cal_perc(user_contribution["contributions"], commits_all)
|
||||
|
|
Loading…
Reference in New Issue