diff --git a/app/models/challenge.rb b/app/models/challenge.rb index 70fac990b..bc504a5bc 100644 --- a/app/models/challenge.rb +++ b/app/models/challenge.rb @@ -74,7 +74,7 @@ class Challenge < ApplicationRecord if game.present? shixun.task_pass || game.status != 3 ? "/tasks/#{game.identifier}" : "" else - "/api/shixuns/#{shixun.identifier}/shixun_exec" + self.position == 1 ? "/api/shixuns/#{shixun.identifier}/shixun_exec" : "" end end