|
|
|
@ -1484,8 +1484,10 @@ class CoursesController < ApplicationController
|
|
|
|
|
shixun_titles = shixun_homeworks.pluck(:name) + ["总得分"]
|
|
|
|
|
|
|
|
|
|
# 更新实训作业成绩
|
|
|
|
|
shixun_homeworks.includes(:homework_challenge_settings, :published_settings, :homework_commons_shixun).each do |homework|
|
|
|
|
|
homework.update_homework_work_score
|
|
|
|
|
unless course.is_end
|
|
|
|
|
shixun_homeworks.includes(:homework_challenge_settings, :published_settings, :homework_commons_shixun).each do |homework|
|
|
|
|
|
homework.update_homework_work_score
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
shixun_homeworks = shixun_homeworks&.includes(score_student_works: :user)
|
|
|
|
|