|
|
@ -13,6 +13,7 @@ elsif @tab == 1
|
|
|
|
# 评测设置的编辑模式
|
|
|
|
# 评测设置的编辑模式
|
|
|
|
json.(@challenge, :id, :path, :exec_path, :show_type, :original_picture_path, :expect_picture_path, :picture_path,
|
|
|
|
json.(@challenge, :id, :path, :exec_path, :show_type, :original_picture_path, :expect_picture_path, :picture_path,
|
|
|
|
:web_route, :test_set_score, :test_set_average)
|
|
|
|
:web_route, :test_set_score, :test_set_average)
|
|
|
|
|
|
|
|
json.has_web_route @shixun.has_web_route?
|
|
|
|
json.test_sets @challenge.test_sets do |set|
|
|
|
|
json.test_sets @challenge.test_sets do |set|
|
|
|
|
json.hidden (set.is_public ? 0 : 1)
|
|
|
|
json.hidden (set.is_public ? 0 : 1)
|
|
|
|
json.(set, :input, :output, :score)
|
|
|
|
json.(set, :input, :output, :score)
|
|
|
|