From ef5d8abf387f75fe51e96567814fce827d5456c2 Mon Sep 17 00:00:00 2001 From: yuanke <249218296@qq.com> Date: Tue, 29 Mar 2016 15:54:44 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=BC=96=E7=A8=8B=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A=E6=8F=90=E7=A4=BA=E6=9C=8D=E5=8A=A1=E5=99=A8=E5=87=BA?= =?UTF-8?q?=E9=94=99=E7=9A=84BUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/student_work_controller.rb | 5 ++--- app/views/users/new_user_commit_homework.html.erb | 1 - 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/app/controllers/student_work_controller.rb b/app/controllers/student_work_controller.rb index ae33ccb07..32867090c 100644 --- a/app/controllers/student_work_controller.rb +++ b/app/controllers/student_work_controller.rb @@ -103,11 +103,10 @@ class StudentWorkController < ApplicationController if result["status"].to_i != -2 #result["results"].first['output'] = result["results"].first['output'].gsub(" ","□") #result["results"].first['result'] = result["results"].first['result'].gsub(" ","□") + space_replace_1(result["results"].first['output']) + space_replace_1(result["results"].first['result']) end - space_replace_1(result["results"].first['output']) - space_replace_1(result["results"].first['result']) - logger.debug result #-1 默认值 0全部正确并结束 2 超时 -2 编译错误 diff --git a/app/views/users/new_user_commit_homework.html.erb b/app/views/users/new_user_commit_homework.html.erb index e33362a0a..f8635194d 100644 --- a/app/views/users/new_user_commit_homework.html.erb +++ b/app/views/users/new_user_commit_homework.html.erb @@ -133,7 +133,6 @@ <% else %>