|
|
|
@@ -1,12 +1,12 @@ |
|
|
|
user = $redis_cache.hgetall("v2-owner-common:#{contributor["login"]}-#{contributor["email"]}") |
|
|
|
user = $redis_cache.hgetall("v2-owner-common:#{contributor["name"]}-#{contributor["email"]}") |
|
|
|
if user.blank? |
|
|
|
json.contributions contributor["contributions"] |
|
|
|
# json.gid contributor["id"] |
|
|
|
json.login contributor["login"] |
|
|
|
json.login contributor["name"] |
|
|
|
json.type nil |
|
|
|
json.name contributor["login"] |
|
|
|
json.image_url User::Avatar.get_letter_avatar_url(contributor["login"]) |
|
|
|
json.contribution_perc User.new(login: contributor["login"], mail: contributor["email"]).simple_contribution_perc(project, contributor["contribution_perc"]) |
|
|
|
json.name contributor["name"] |
|
|
|
json.image_url User::Avatar.get_letter_avatar_url(contributor["name"]) |
|
|
|
json.contribution_perc User.new(login: contributor["name"], mail: contributor["email"]).simple_contribution_perc(project, contributor["contribution_perc"]) |
|
|
|
else |
|
|
|
json.contributions contributor["contributions"] |
|
|
|
# json.gid contributor["id"] |
|
|
|
|