diff --git a/app/views/users/_manage_homework_list.html.erb b/app/views/users/_manage_homework_list.html.erb index 026bacc29..1bf66b333 100644 --- a/app/views/users/_manage_homework_list.html.erb +++ b/app/views/users/_manage_homework_list.html.erb @@ -14,11 +14,11 @@

<%= (cur_homework_end_time homework).html_safe %> 未交: - <%= homework.homework_type == 3 ? '--' : (homework.course.student.count - homework.student_works.has_committed.count) %> + <%= homework.course.student.count - homework.student_works.has_committed.count %> 已评: - <%= homework.student_works.has_committed.count - homework.student_works.has_committed.where("teacher_score is null and teaching_asistant_score is null").count %> + <%= homework.student_works.where("work_status != 0 and (teacher_score is not null or teaching_asistant_score is not null)").count %> 未评: - <%= homework.student_works.has_committed.count %> + <%= homework.student_works.where("work_status != 0 and teacher_score is null and teaching_asistant_score is null").count %>

<% if homework.student_works.has_committed.count == 0 %>