编程作业报系统繁忙的问题
This commit is contained in:
parent
ddbef73270
commit
4bb239a944
|
@ -160,7 +160,7 @@ class StudentWorkController < ApplicationController
|
|||
student_work.name = params[:title]
|
||||
student_work.description = params[:src]
|
||||
|
||||
if @homework.end_time < Time.now.to_s
|
||||
if !is_test && @homework.end_time < Time.now.to_s
|
||||
student_work.late_penalty = @homework.late_penalty
|
||||
else
|
||||
student_work.late_penalty = 0
|
||||
|
|
5306
db/schema.rb
5306
db/schema.rb
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue