You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
educoder/app/views/games/_testset_list.json.jbuilder

15 lines
537 B

json.test_sets @qurey_test_sets do |test_set|
json.is_public test_set.is_public
json.result test_set.try(:result)
if test_set.is_public || @allowed_hidden_testset
json.input test_set.input
json.output test_set.output
json.actual_output evaluate_actual_output(test_set)
end
json.compile_success test_set.try(:compile_success)
end
json.allowed_unlock @shixun.test_set_permission
json.last_compile_output @last_compile_output
json.test_sets_count @test_sets_count
json.sets_error_count @sets_error_count