|
|
@ -47,6 +47,8 @@ class HacksController < ApplicationController
|
|
|
|
hack.identifier = generate_identifier Hack, 8
|
|
|
|
hack.identifier = generate_identifier Hack, 8
|
|
|
|
hack.save!
|
|
|
|
hack.save!
|
|
|
|
# 创建测试集与代码
|
|
|
|
# 创建测试集与代码
|
|
|
|
|
|
|
|
logger.info("hack_sets_params:#{hack_sets_params}")
|
|
|
|
|
|
|
|
logger.info("hack_code_params:#{hack_code_params}")
|
|
|
|
hack.hack_sets.create!(hack_sets_params)
|
|
|
|
hack.hack_sets.create!(hack_sets_params)
|
|
|
|
hack.hack_codes.create!(hack_code_params)
|
|
|
|
hack.hack_codes.create!(hack_code_params)
|
|
|
|
end
|
|
|
|
end
|
|
|
|