编程作业报系统繁忙的问题

This commit is contained in:
daiao 2017-03-07 08:48:40 +08:00
parent ddbef73270
commit 4bb239a944
2 changed files with 2692 additions and 2616 deletions

View File

@ -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

File diff suppressed because it is too large Load Diff