Skip to content

Commit 42fdc16

Browse files
escowlesphette23
authored andcommitted
Updating script to include livestream value for every event
1 parent 745dca9 commit 42fdc16

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

_scripts/schedule.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99

1010
fmt = "%H:%M"
1111

12+
def livestream?(title)
13+
title.match?(/Announcements/) || title.match?(/Talks/) || title.match?(/Keynote/)
14+
end
15+
1216
CSV.foreach(ARGV[0], headers: true).each do |row|
1317
day = row["Day"]
1418
start = row["Start"]
@@ -23,6 +27,7 @@
2327
puts "- timeImg: #{clockface}"
2428
puts " time: #{d1.strftime(fmt)}-#{d2.strftime(fmt)}"
2529
puts " day#{day}: true"
30+
puts " livestream: #{livestream?(prev_desc)}"
2631
puts " title: #{prev_desc}"
2732

2833
if prev_desc == "Opening Keynote"

0 commit comments

Comments
 (0)