Commit 3029b823 authored by Jérome Perrin's avatar Jérome Perrin

strip station id in shift input spreadsheet

parent 8a7d2d8f
......@@ -28,6 +28,7 @@ class Simulation(DefaultSimulation):
stop_date = strptime("%s %s" % (line[0], line[3]), '%Y/%m/%d %H:%M')
stop_time = (stop_date - now).total_seconds() // 60
for station in line[1].split(','):
station = station.strip()
shift_by_station.setdefault(station, []).append(
(start_time, stop_time) )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment