mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-03 11:50:49 +08:00
修复:watchable使用project.owner
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user