This commit is contained in:
Jasder 2020-11-24 17:56:30 +08:00
parent 17e182788f
commit 58a80af929
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@ class ProjectsController < ApplicationController
@total_count =
if category_id.blank?
ps = ProjectStatistic.first
ps.common_projects_count + ps.mirror_projects_count
ps.common_projects_count + ps.mirror_projects_count unless ps.blank?
else
cate = ProjectCategory.find_by(id: category_id)
cate&.projects_count || 0