作业列表调整

dev_course
cxt 5 years ago
parent 383723612d
commit e808b0bb3d

@ -176,7 +176,7 @@ module HomeworkCommonsHelper
# 作品数统计type 1 已提交 0 未提交 # 作品数统计type 1 已提交 0 未提交
def studentwork_count homework_common, type, member def studentwork_count homework_common, type, member
student_works = homework_common.teacher_works(member) student_works = homework_common.teacher_works(member)
type == 1 ? student_works.select{|work| work.work_status != 0}.size : student_works.select{|work| work.work_status = 0}.size type == 1 ? student_works.where("work_status != 0").size : student_works.where(work_status: 0).size
end end
# 上次查重的时间 # 上次查重的时间

Loading…
Cancel
Save