|
|
|
@ -304,7 +304,7 @@ class InitializationDataController < ApplicationController
|
|
|
|
|
|
|
|
|
|
# 创建测试集数据
|
|
|
|
|
def copy_test_sets_data
|
|
|
|
|
set_attrs = %i[id input output challenge_id is_public result position score created_at updated_at]
|
|
|
|
|
set_attrs = %i[id input output challenge_id is_public result position score match_rule created_at updated_at]
|
|
|
|
|
TestSet.bulk_insert(*set_attrs) do |worker|
|
|
|
|
|
@test_sets.each do |set|
|
|
|
|
|
base_attr = set.attributes.dup
|
|
|
|
|