From dafc128f348fc1968fe977812e7dfda8bd5ae002 Mon Sep 17 00:00:00 2001 From: sw <939547590@qq.com> Date: Wed, 26 Aug 2015 17:44:03 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E9=83=A8=E5=88=86=E9=BB=98?= =?UTF-8?q?=E8=AE=A4=E5=8F=82=E6=95=B0=E7=9A=84=E8=AE=BE=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/users_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb index 5d0403099..5779ba5d0 100644 --- a/app/controllers/users_controller.rb +++ b/app/controllers/users_controller.rb @@ -341,7 +341,7 @@ class UsersController < ApplicationController homework.end_time = params[:homework_common][:end_time] homework.publish_time = Time.now homework.homework_type = 1 - homework.late_penalty = 0 + homework.late_penalty = 2 homework.user_id = User.current.id homework.course_id = params[:course_id] @@ -355,7 +355,7 @@ class UsersController < ApplicationController homework_detail_manual.evaluation_start = Time.now homework_detail_manual.evaluation_end = Time.now homework_detail_manual.evaluation_num = params[:evaluation_num] || 3 - homework_detail_manual.absence_penalty = 0 + homework_detail_manual.absence_penalty = 2 homework.homework_detail_manual = homework_detail_manual if homework.save