|
|
@ -91,7 +91,7 @@ class GamesService
|
|
|
|
sql =
|
|
|
|
sql =
|
|
|
|
if max_query_index > 0
|
|
|
|
if max_query_index > 0
|
|
|
|
"SELECT
|
|
|
|
"SELECT
|
|
|
|
b.actual_output, b.out_put, b.result, a.is_public, a.input, a.output
|
|
|
|
b.actual_output, b.out_put, b.result, b.compile_success, a.is_public, a.input, a.output
|
|
|
|
FROM
|
|
|
|
FROM
|
|
|
|
(SELECT position, input, output, challenge_id, is_public FROM test_sets where challenge_id=#{game_challenge.id}) a
|
|
|
|
(SELECT position, input, output, challenge_id, is_public FROM test_sets where challenge_id=#{game_challenge.id}) a
|
|
|
|
LEFT JOIN
|
|
|
|
LEFT JOIN
|
|
|
|