diff --git a/app/controllers/courses_controller.rb b/app/controllers/courses_controller.rb index 6616c74ab..26e6fc095 100644 --- a/app/controllers/courses_controller.rb +++ b/app/controllers/courses_controller.rb @@ -1511,9 +1511,8 @@ class CoursesController < ApplicationController if student_works.empty? sheet1[count_row,j+4] = 0 else - final_score = student_works.first.final_score.nil? ? 0 : student_works.first.final_score - score = final_score - student_works.first.absence_penalty - student_works.first.late_penalty - sheet1[count_row,j+4] = score <0 ? 0:score.round(2) + work_score = student_works.first.work_score.nil? ? 0 : student_works.first.work_score + sheet1[count_row,j+4] = work_score <0 ? 0:work_score.round(2) end end hw_score = member.score.nil? ? 0 : member.score