Skip to content

Commit

Permalink
Merge pull request #1113 from PlanoramaEvents/plan-1022-rce-hybrid-st…
Browse files Browse the repository at this point in the history
…ages

Need event type and stage/room for room to
  • Loading branch information
balen authored Jun 28, 2024
2 parents d788fb4 + e308054 commit 24363dd
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions app/controllers/rce_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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|
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 24363dd

Please sign in to comment.