From fa2448b94d9a3a39efbf557f8b82b32824bd06f7 Mon Sep 17 00:00:00 2001 From: xxq250 Date: Fri, 30 May 2025 11:55:27 +0800 Subject: [PATCH] =?UTF-8?q?fixed=20dataset=E4=BB=85=E6=9C=AC=E5=9C=B0?= =?UTF-8?q?=E7=89=88=E5=BC=80=E6=94=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/models/project_unit.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/project_unit.rb b/app/models/project_unit.rb index f7038ce7f..2afd1b41c 100644 --- a/app/models/project_unit.rb +++ b/app/models/project_unit.rb @@ -23,7 +23,7 @@ class ProjectUnit < ApplicationRecord def self.init_types(project_id, project_type='common') unit_types = project_type == 'sync_mirror' ? ProjectUnit::unit_types.except("pulls") : ProjectUnit::unit_types - # unit_types = unit_types.except("dataset") + unit_types = unit_types.except("dataset") unless EduSetting.get("is_local") == "true" unit_types.each do |_, v| self.create!(project_id: project_id, unit_type: v) end