|
|
@ -24,7 +24,7 @@ namespace :homework_evaluation do
|
|
|
|
student_works = homework_common.student_works.has_committed
|
|
|
|
student_works = homework_common.student_works.has_committed
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
if student_works.count >= 2
|
|
|
|
if student_works.present? && student_works.length >= 2
|
|
|
|
HomeworkEvaluationCommentAssginJob.perform_later(homework_common.id)
|
|
|
|
HomeworkEvaluationCommentAssginJob.perform_later(homework_common.id)
|
|
|
|
|
|
|
|
|
|
|
|
homework_detail_manual.update_column('comment_status', 3)
|
|
|
|
homework_detail_manual.update_column('comment_status', 3)
|
|
|
|