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

This commit is contained in:
xxq250 2025-06-06 10:23:25 +08:00
parent a3e94e47e7
commit 6ffac40f8d
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ class Admins::ProjectsRankController < Admins::BaseController
sheet[index+1,1] = "#{d&.project&.owner&.real_name}/#{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,2] = "#{Rails.application.config_for(:configuration)['platform_url']}/#{d&.project&.owner&.login}/#{d&.project&.identifier}"
sheet[index+1,3] = d&.project&.project_category&.name 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,4] = d&.project&.created_on.present? ? d&.project&.created_on.strftime("%Y-%m-%d %H:%M:%S") : ""
sheet[index+1,5] = d&.project&.common? ? "独立创建" : "外部迁移" sheet[index+1,5] = d&.project&.common? ? "独立创建" : "外部迁移"
sheet[index+1,6] = d.score sheet[index+1,6] = d.score
sheet[index+1,7] = d.visits sheet[index+1,7] = d.visits