Skip to content

Commit e45c3f1

Browse files
committed
Fix line ending of schedule.csv
1 parent 823d5de commit e45c3f1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/scheduler/io.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ def export_schedule(solution, events, slots, solution_folder):
107107
}
108108
for item in schedule
109109
]
110-
with csv_file.open('w') as f:
110+
with csv_file.open('w', newline='') as f:
111111
writer = csv.DictWriter(
112112
f, fieldnames=['event_index', 'event', 'slot_index', 'slot'])
113113
writer.writeheader()

0 commit comments

Comments
 (0)