|
|
@ -86,7 +86,7 @@ elsif question.question_type == 5
|
|
|
|
user_get_score = games_score[:s_score].present? ? games_score[:s_score] : 0.0
|
|
|
|
user_get_score = games_score[:s_score].present? ? games_score[:s_score] : 0.0
|
|
|
|
json.shixun_challenge_id s.id
|
|
|
|
json.shixun_challenge_id s.id
|
|
|
|
if games_score[:games].count > 0
|
|
|
|
if games_score[:games].count > 0
|
|
|
|
json.partial! "exercises/shixun_details",games: games_score[:games], user_score: user_get_score,game_score: games_score[:game_score]
|
|
|
|
json.partial! "exercises/shixun_details",games: games_score[:games], user_score: user_get_score,game_score: games_score[:game_score],shixun_challenge:s
|
|
|
|
else
|
|
|
|
else
|
|
|
|
json.partial! "exercises/shixun_undo",games: [s], user_score: user_get_score ,game_score: s.question_score
|
|
|
|
json.partial! "exercises/shixun_undo",games: [s], user_score: user_get_score ,game_score: s.question_score
|
|
|
|
end
|
|
|
|
end
|
|
|
|