Browse Source

fixed 项目排行导出增加3列,时间

pull/348/head^2
xxq250 1 year ago
parent
commit
0be92d5288
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      app/controllers/admins/projects_rank_controller.rb

+ 4
- 4
app/controllers/admins/projects_rank_controller.rb View File

@@ -42,10 +42,10 @@ class Admins::ProjectsRankController < Admins::BaseController
sheet[index+1,0] = index+1
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&.project&.project_category&.name
sheet[index+1,5] = d&.project&.created_on
sheet[index+1,6] = d&.project&.common? ? "独立创建" : "外部迁移"
sheet[index+1,3] = d&.project&.project_category&.name
sheet[index+1,4] = d&.project&.created_on.to_s.strftime("%Y-%m-%d %H:%M:%S")
sheet[index+1,5] = d&.project&.common? ? "独立创建" : "外部迁移"
sheet[index+1,6] = d.score
sheet[index+1,7] = d.visits
sheet[index+1,8] = d.watchers
sheet[index+1,9] = d.praises


Loading…
Cancel
Save