匿评任务的调整

dev_aliyun2
cxt 5 years ago committed by harry
parent 6751a02ba5
commit ec4dde7959

@ -17,7 +17,7 @@ namespace :homework_evaluation do
homework_detail_manuals.each do |homework_detail_manual|
homework_common = homework_detail_manual.homework_common
if homework_common.anonymous_comment
if homework_common.homework_group_settings.where("end_time is null or end_time > '#{Time.now}'").count == 0
if homework_common.homework_group_settings.where("end_time > '#{Time.now}'").count == 0
if homework_common.homework_type == "group"
student_works = homework_common.student_works.where("work_status != 0").group(:group_id)
else

Loading…
Cancel
Save