forked from Trustie/forgeplus
fixed 首页项目数量统计
This commit is contained in:
parent
aabb7518c0
commit
dbae651abc
|
|
@ -16,8 +16,6 @@ class ProjectStatistic < ApplicationRecord
|
|||
def self.data
|
||||
data = self.last
|
||||
if data.present?
|
||||
return data
|
||||
else
|
||||
common_projects_count = Project.common.count
|
||||
mirror_projects_count = Project.mirror.count
|
||||
sync_mirror_projects_count = Project.sync_mirror.count
|
||||
|
|
|
|||
Loading…
Reference in New Issue