Browse Source

新增:项目加载排除id=0

pull/347/head
yystopf 2 years ago
parent
commit
f28f1a5c55
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      app/models/project.rb

+ 2
- 0
app/models/project.rb View File

@@ -90,6 +90,8 @@ class Project < ApplicationRecord
include ProjectOperable
include Dcodes

default_scope {where.not(id: 0)}

# common:开源托管项目
# mirror:普通镜像项目,没有定时同步功能
# sync_mirror:同步镜像项目,有系统定时同步功能,且用户可手动同步操作


Loading…
Cancel
Save