From 01cf00f67751e5c1fb4cfc50bb7205dda4f175e3 Mon Sep 17 00:00:00 2001 From: daiao <358551898@qq.com> Date: Mon, 2 Sep 2019 17:50:08 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=9E=E8=AE=AD=E7=9A=84=E5=85=B3=E5=8D=A1?= =?UTF-8?q?=E6=95=B0=E4=B8=8D=E5=AF=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/initialization_data_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/initialization_data_controller.rb b/app/controllers/initialization_data_controller.rb index eaf3dd14a..59218dbc3 100644 --- a/app/controllers/initialization_data_controller.rb +++ b/app/controllers/initialization_data_controller.rb @@ -158,10 +158,10 @@ class InitializationDataController < ApplicationController shixun_attrs = %i[id name user_id gpid status authentication identifier trainee major_id webssh homepage_show hidden fork_from can_copy modify_time reset_time publish_time closer_id end_time git_url vnc created_at updated_at mirror_script_id image_text code_hidden task_pass exec_time test_set_permission sigle_training hide_code - multi_webssh excute_time repo_name averge_star opening_time forbid_copy pod_life] + multi_webssh excute_time repo_name averge_star opening_time forbid_copy pod_life challenges_count] Shixun.bulk_insert(*shixun_attrs) do |worker| @shixuns.each do |shixun| - base_attr = shixun.attributes.dup.except("user_id", "challenges_count", "myshixuns_count", "use_scope") + base_attr = shixun.attributes.dup.except("user_id", "myshixuns_count", "use_scope") logger.info("#######shixun:#{base_attr}") worker.add(base_attr.merge(user_id: 1)) end