From a2e81a3a704347b06b3d433de08d224e621d31d0 Mon Sep 17 00:00:00 2001 From: daiao <35855898@qq.com> Date: Thu, 14 Mar 2019 19:17:45 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95=E9=9B=86=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/services/games_service.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/services/games_service.rb b/app/services/games_service.rb index e1d81137..d7b56838 100644 --- a/app/services/games_service.rb +++ b/app/services/games_service.rb @@ -93,7 +93,7 @@ class GamesService "SELECT b.actual_output, b.out_put, b.result, a.is_public, a.input, a.output FROM - (SELECT position, input, output, challenge_id, is_public FROM test_sets where challenge_id=6000) a + (SELECT position, input, output, challenge_id, is_public FROM test_sets where challenge_id=#{game_challenge.id}) a LEFT JOIN (SELECT result, test_set_position, g.challenge_id, o.actual_output, o.out_put