mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-02 19:30:48 +08:00
新增:固定数据清洗及获取
This commit is contained in:
@@ -14,5 +14,11 @@ else
|
||||
json.name user["name"]
|
||||
json.image_url user["avatar_url"]
|
||||
db_user = User.find_by_id(user["id"])
|
||||
json.contribution_perc db_user.contribution_perc(project) if db_user.present?
|
||||
if db_user.present?
|
||||
if @project&.id == 1428586
|
||||
json.contribution_perc db_user.mindspore_contribution_perc(project)
|
||||
else
|
||||
json.contribution_perc db_user.contribution_perc(project)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user