|
|
|
@@ -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) |
|
|
|
|