diff --git a/app/controllers/student_work_controller.rb b/app/controllers/student_work_controller.rb index 066581025..8a2ee2ebb 100644 --- a/app/controllers/student_work_controller.rb +++ b/app/controllers/student_work_controller.rb @@ -1705,11 +1705,11 @@ class StudentWorkController < ApplicationController sheet1[count_row,10] = homework.student_score.nil? ? l(:label_without_score) : homework.student_score.round(2) sheet1[count_row,11] = (@homework.teacher_priority == 1 && !homework.teacher_score.nil?) ? 0 : homework.absence_penalty sheet1[count_row,12] = (@homework.teacher_priority == 1 && !homework.teacher_score.nil?) ? 0 : homework.late_penalty - sheet1[count_row,13] = homework.respond_to?("score") ? homework.score.nil? ? l(:label_without_score) : homework.score.round(2) : l(:label_without_score) + sheet1[count_row,13] = homework.work_score.nil? ? l(:label_without_score) : homework.work_score.round(2) sheet1[count_row,14] = homework.commit_time ? format_time(homework.commit_time) : "未提交" else sheet1[count_row,10] = (@homework.teacher_priority == 1 && !homework.teacher_score.nil?) ? 0 : homework.late_penalty - sheet1[count_row,11] = homework.respond_to?("score") ? homework.score.nil? ? l(:label_without_score) : homework.score.round(2) : l(:label_without_score) + sheet1[count_row,11] = homework.work_score.nil? ? l(:label_without_score) : homework.work_score.round(2) sheet1[count_row,12] = homework.commit_time ? format_time(homework.commit_time) : "未提交" end count_row += 1