dev_forum
SylorHuang 6 years ago
parent 4b71fc1576
commit 5c74d71c94

@ -436,7 +436,7 @@ module ExercisesHelper
game_code = game_challenge
code = game_code.try(:new_code)
else
code = git_fle_content(exercise_cha.shixun&.repo_path,cha_path)
code = git_fle_content(game.myshixun.repo_path,cha_path)
end
sx_option = {
:exercise_question_id => q.id,

@ -29,7 +29,7 @@ json.shixun_detail do
if game.try(:lastest_code).blank?
cha_path = challenge_path(shixun_challenge.challenge&.path)
latest_code = git_fle_content(shixun_challenge.shixun&.repo_path,cha_path)
latest_code = git_fle_content(game&.myshixun.repo_path,cha_path)
else
latest_code = game.try(:lastest_code)
end

Loading…
Cancel
Save