作业发布调整

dev_aliyun2
cxt 5 years ago
parent 77faec0794
commit 0d8ac4e98a

@ -1,7 +1,7 @@
json.course_groups @course_groups do |group| json.course_groups @course_groups do |group|
json.id group.id json.id group.id
json.name group.name json.name group.name
json.end_time @group_settings.select{|group_setting| group_setting.course_group_id == group.id}.first&.end_time json.end_time @homework.unified_setting ? @homework.end_time : @group_settings.select{|group_setting| group_setting.course_group_id == group.id}.first&.end_time
end end
json.end_time @homework.end_time json.end_time @homework.end_time
json.late_time @homework.late_time json.late_time @homework.late_time
Loading…
Cancel
Save