|
|
@ -250,7 +250,7 @@
|
|
|
|
<% if @games.size > 0 %>
|
|
|
|
<% if @games.size > 0 %>
|
|
|
|
<% @games.each_with_index do |game, index| %>
|
|
|
|
<% @games.each_with_index do |game, index| %>
|
|
|
|
<% game_score = q.exercise_shixun_challenges.where(challenge_id:game.challenge.id) %>
|
|
|
|
<% game_score = q.exercise_shixun_challenges.where(challenge_id:game.challenge.id) %>
|
|
|
|
<% user_score = q.exercise_shixun_answers.where(exercise_shixun_challenge_id: game_score&.id,user_id: @ex_user_user.id) %>
|
|
|
|
<% user_score = q.exercise_shixun_answers.where(exercise_shixun_challenge_id: game_score&.first&.id,user_id: @ex_user_user.id) %>
|
|
|
|
<tr>
|
|
|
|
<tr>
|
|
|
|
<td><%= index + 1 %></td>
|
|
|
|
<td><%= index + 1 %></td>
|
|
|
|
<td style="text-align: left;">
|
|
|
|
<td style="text-align: left;">
|
|
|
|