Browse Source

修复:watchable使用project.owner

pull/330/head
yystopf 3 years ago
parent
commit
c7f21fed4f
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/models/concerns/watchable.rb

+ 1
- 1
app/models/concerns/watchable.rb View File

@@ -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…
Cancel
Save