def write_summary_schedule(schedule, config): schedule_dir = os.path.join(config['output_dir'], 'schedule', 'summary') schedule_path = os.path.join(schedule_dir, 'summary.csv') mkdirs(schedule_dir) headings = ['Title', 'Speaker', 'Date', 'Time', 'Room'] with io.open(schedule_path, 'wb') as csvfile: writer = UnicodeWriter(csvfile) writer.writerow(headings) for talk in schedule: writer.writerow(make_row(talk, config))
def write_csv_schedule(schedule, config): schedule_dir = os.path.join(config['output_dir'], 'schedule', 'csv') schedule_path = os.path.join(schedule_dir, 'schedule.csv') headings = ['Don\'t change any of these headers!', 'Session Title', 'Date', 'Time Start', 'Time End', 'Room/Location', 'Schedule Track (Optional)', 'Description (Optional)'] mkdirs(schedule_dir) with io.open(schedule_path, 'wb') as csvfile: writer = UnicodeWriter(csvfile) writer.writerow(headings) for talk in schedule: writer.writerow(make_row(talk, config))