diff --git a/app/views/student_work/shixun_work_report.html.erb b/app/views/student_work/shixun_work_report.html.erb index e83cd3d7..748cbb9f 100644 --- a/app/views/student_work/shixun_work_report.html.erb +++ b/app/views/student_work/shixun_work_report.html.erb @@ -77,8 +77,8 @@ <% end %> <%= game.try(:open_time).nil? || game.status == 3 ? "--" : format_time(game.open_time) %> - <% user_query = @game_user_query.select{|user_query| user_query[0] == game.id} %> - <%= user_query.blank? ? "--" : user_query.first[1] %> + <%# user_query = @game_user_query.select{|user_query| user_query[0] == game.id} %> + <%= game.evaluate_count.to_i == 0 ? "--" : game.evaluate_count.to_i %> <%= game.try(:end_time).nil? ? "--" : format_time(game.end_time) %> <%= game.consumes_time %> <%= game.status == 2 ? (game.final_score.to_i < 0 ? 0 : game.challenge.choose_score.to_i) : 0 %> / <%= game.challenge.choose_score %>