From ce83676e3def74cdb6be91a924552aa21a6cef37 Mon Sep 17 00:00:00 2001 From: cxt <853663049@qq.com> Date: Mon, 8 Jul 2019 10:23:18 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4pdf=E5=AF=BC=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/student_work/shixun_work_report.html.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 %>