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