diff --git a/app/controllers/rce_controller.rb b/app/controllers/rce_controller.rb index 8f6cafbce..386eb9c26 100644 --- a/app/controllers/rce_controller.rb +++ b/app/controllers/rce_controller.rb @@ -21,7 +21,8 @@ def generate_csv(sessions) column_names = [ 'Start date','Start time','End date','End time', 'Schedule name','Schedule description','Segment name','Segment type', - 'Tags','Attendance' + 'Tags','Attendance', + 'Event type', 'Room' ] CSV.generate do |csv| @@ -53,7 +54,10 @@ def generate_csv(sessions) segmentType, # Areas and tags "#{session.area_list.sort.join(', ')}, #{session.tag_list&.join(', ')}", # Tags may be new line seperated? - 'regular' + 'regular', + # If is a stage then it is "hybrid" and we set Event Tyep and the Room name !!! + segmentType == "stage" ? 'hybrid' : 'virtual', + segmentType == "stage" ? session.room.name : '', ] end end