作业编辑报500

This commit is contained in:
cxt 2016-04-22 16:32:59 +08:00
parent da73d2b004
commit e2b18b3f48
1 changed files with 2 additions and 2 deletions

View File

@ -78,9 +78,9 @@ class HomeworkCommonController < ApplicationController
@homework.course_id = params[:course_id]
if params[:homework_common][:anonymous_comment] && params[:homework_common][:anonymous_comment] != @homework.anonymous_comment
if @homework.anonymous_comment == 1
homework_detail_manual.ta_proportion = homework.homework_type == 1 ? 1.0 : 0.4
homework_detail_manual.ta_proportion = @homework.homework_type == 1 ? 1.0 : 0.4
else
homework_detail_manual.ta_proportion = homework.homework_type == 1 ? 0.6 : 0.3
homework_detail_manual.ta_proportion = @homework.homework_type == 1 ? 0.6 : 0.3
end
end