Merge pull request '项目名称显示不全' (#239) from gitlink_admin_feature into standalone_develop

This commit is contained in:
2023-12-19 15:39:48 +08:00
3 changed files with 3 additions and 2 deletions

View File

@@ -38,7 +38,7 @@ class Admins::ProjectsRankController < Admins::BaseController
sheet.row(0).concat %w(排名 项目全称 项目地址 得分 访问数 关注数 点赞数 fork数 疑修数 合并请求数 提交数)
data.each_with_index do |d, index|
sheet[index+1,0] = index+1
sheet[index+1,1] = "#{d&.project&.owner&.nickname}/#{d&.project&.name}"
sheet[index+1,1] = "#{d&.project&.owner&.real_name}/#{d&.project&.name}"
sheet[index+1,2] = "#{Rails.application.config_for(:configuration)['platform_url']}/#{d&.project&.owner&.login}/#{d&.project&.identifier}"
sheet[index+1,3] = d.score
sheet[index+1,4] = d.visits