Browse Source

修复

pull/342/head
yystopf 3 years ago
parent
commit
33e503ed9a
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/views/repositories/_contributor.json.jbuilder

+ 1
- 1
app/views/repositories/_contributor.json.jbuilder View File

@@ -15,5 +15,5 @@ else
json.name user["name"] json.name user["name"]
json.image_url user["avatar_url"] json.image_url user["avatar_url"]
db_user = User.find_by_id(user["id"]) db_user = User.find_by_id(user["id"])
json.contribution_perc db_user.simple_contribution_perc(project) if db_user.present?
json.contribution_perc db_user.simple_contribution_perc(project, contributor["contribution_perc"]) if db_user.present?
end end

Loading…
Cancel
Save