diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb index 33ab33a32..c95366835 100644 --- a/app/controllers/users_controller.rb +++ b/app/controllers/users_controller.rb @@ -1055,7 +1055,7 @@ class UsersController < ApplicationController end homework.anonymous_comment = params[:homework_common][:anonymous_comment] ? params[:homework_common][:anonymous_comment].to_i : 1 homework.homework_type = params[:homework_type].to_i || 1 - homework.late_penalty = 10 + homework.late_penalty = 0 homework.teacher_priority = 1 homework.user_id = User.current.id homework.course_id = params[:course_id] @@ -1077,7 +1077,7 @@ class UsersController < ApplicationController homework_detail_manual.evaluation_start = params[:evaluation_start].blank? ? homework.end_time + 7 : params[:evaluation_start] homework_detail_manual.evaluation_end = params[:evaluation_end].blank? ? homework_detail_manual.evaluation_start + 7 : params[:evaluation_end] homework_detail_manual.evaluation_num = params[:evaluation_num] || 3 - homework_detail_manual.absence_penalty = 5 + homework_detail_manual.absence_penalty = 0 homework.homework_detail_manual = homework_detail_manual #编程作业相关属性