From 9551b5a462f0ff74814dd33bb745fd4b996bcc97 Mon Sep 17 00:00:00 2001 From: yystopf Date: Tue, 28 Oct 2025 11:35:05 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=EF=BC=9A=E5=90=8E=E5=8F=B0?= =?UTF-8?q?=E7=AE=A1=E7=90=86maven=E6=95=B0=E5=92=8Cpypi=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/admins/dashboards_controller.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/controllers/admins/dashboards_controller.rb b/app/controllers/admins/dashboards_controller.rb index d999b731d..ca2529297 100644 --- a/app/controllers/admins/dashboards_controller.rb +++ b/app/controllers/admins/dashboards_controller.rb @@ -67,12 +67,12 @@ class Admins::DashboardsController < Admins::BaseController @maven_count = Rails.cache.fetch("dashboardscontroller:platform:maven_count", expires_in: 1.days) do result = ActiveRecord::Base.connection.select_all("SELECT * FROM pm_nexus_statistics where format ='maven' order by id desc limit 1") - result.rows[0][:count] + result.rows[0][2] end @pypi_count = Rails.cache.fetch("dashboardscontroller:platform:pypi_count", expires_in: 1.days) do - result = ActiveRecord::Base.connection.select_all("SELECT * FROM pm_nexus_statistics where format ='pypi' order by id desc limit 1") - result.rows[0][:count] + result = ActiveRecord::Base.connection.select_all("SELECT * FROM pm_nexus_statistics where format ='pypi' order by id desc limit 1") + result.rows[0][2] end @subject_name = ["用户数", "项目数", "组织数", "Issue数", "Issue评论数", "PR数", "Commit数", "Maven数", "Pypi数"]