diff --git a/app/controllers/student_work_controller.rb b/app/controllers/student_work_controller.rb index 1071a5a5a..a3bddd2ac 100644 --- a/app/controllers/student_work_controller.rb +++ b/app/controllers/student_work_controller.rb @@ -1320,7 +1320,6 @@ class StudentWorkController < ApplicationController @homework.update_column('anonymous_comment', @homework.anonymous_comment == 0 ? 1 : 0) homework_detail_programing = @homework.homework_detail_programing if @homework.anonymous_comment == 1 - homework_detail_manual.ta_proportion = @homework.homework_type == 2 ? 0.4 : 1.0 @status = 1 else if @homework.end_time < Time.now @@ -1332,14 +1331,12 @@ class StudentWorkController < ApplicationController homework_detail_manual.evaluation_end = homework_detail_manual.evaluation_start + 7 @status = 3 end - homework_detail_manual.ta_proportion = @homework.homework_type == 2 ? 0.3 : 0.6 end + homework_detail_manual.te_proportion = 1.0 + homework_detail_manual.ta_proportion = 0 + if @homework.homework_type == 2 && homework_detail_programing - if @homework.anonymous_comment == 1 - homework_detail_programing.ta_proportion = 0.6 - else - homework_detail_programing.ta_proportion = 0.5 - end + homework_detail_programing.ta_proportion = 0 end homework_detail_manual.save homework_detail_programing.save if homework_detail_programing