parent
a657881dfd
commit
762cd64b7f
@ -1,6 +1,6 @@
|
||||
json.course_groups @course_groups do |group|
|
||||
json.id group.id
|
||||
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 @exercise.unified_setting ? @exercise.end_time : @group_settings.select{|group_setting| group_setting.course_group_id == group.id}.first&.end_time
|
||||
end
|
||||
json.end_time @exercise.end_time
|
@ -1,6 +1,6 @@
|
||||
json.course_groups @course_groups do |group|
|
||||
json.id group.id
|
||||
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 @poll.unified_setting ? @poll.end_time : @group_settings.select{|group_setting| group_setting.course_group_id == group.id}.first&.end_time
|
||||
end
|
||||
json.end_time @poll.end_time
|
Loading…
Reference in new issue