From ed49e6aaff5e3c2a638799f8850cb252cbc6e0e2 Mon Sep 17 00:00:00 2001 From: cxt <853663049@qq.com> Date: Wed, 25 Sep 2019 16:27:03 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/welcome_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/welcome_controller.rb b/app/controllers/welcome_controller.rb index d0dc51e0..ea19b903 100644 --- a/app/controllers/welcome_controller.rb +++ b/app/controllers/welcome_controller.rb @@ -485,7 +485,7 @@ class WelcomeController < ApplicationController def _shixun_to_local shixuns shixuns.each do |shixun| - if LocalShixun.where(shixun_id: shixun.id).blank? + if LocalShixun.where(shixun_id: shixun.id).blank? && !shixun.mirror_repositories.pluck(:type_name).includes?("VNC") local_shixun = LocalShixun.create!(name: shixun.name, description: shixun.description, user_id: User.current.id, status: 0, trainee: shixun.trainee, webssh: shixun.webssh, multi_webssh: shixun.multi_webssh,