修改编程作业提示服务器出错的BUG
This commit is contained in:
parent
213cf48c09
commit
ef5d8abf38
|
@ -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 编译错误
|
||||
|
|
|
@ -133,7 +133,6 @@
|
|||
<% else %>
|
||||
<div class="ProResultTable " >
|
||||
<ul class="ProResultUl " >
|
||||
<% logger.error("################################################{test.results}") %>
|
||||
<% test.results.reverse.each_with_index do |x, i| %>
|
||||
<% unless x.nil? %>
|
||||
<li ><span class="w60 T_C">测试<%=test.results.size-i%></span>
|
||||
|
|
Loading…
Reference in New Issue