From 9e8a54a49b4411517e639db0d1c411b80744e884 Mon Sep 17 00:00:00 2001 From: jingquan huang Date: Thu, 1 Aug 2019 19:22:07 +0800 Subject: [PATCH] 500 --- app/views/managements/evaluate_simple.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/managements/evaluate_simple.html.erb b/app/views/managements/evaluate_simple.html.erb index ffdf5db0..30e8cd39 100644 --- a/app/views/managements/evaluate_simple.html.erb +++ b/app/views/managements/evaluate_simple.html.erb @@ -36,7 +36,7 @@ <%= record.front_js %> <%= record.test_cases %> <%= format_time record.created_at %> - <% challenge = Game.find_by(record.game_id).challenge %> + <% challenge = Game.find(record.game_id).challenge %> <%= challenge.try(:exec_time) %> <%= record.shixun.try(:identifier) %> <%= link_to record.shixun.try(:name), task_path(record.game), :target => "_blank", :title => "#{record.shixun.try(:name)}" %>