grid = []
times = ['%02d:%02d' % (x/2, x%2*30) for x in range(nb_lines)]
- # grid starts at 5am
- times = times[2*5:] + times[:2*5]
+ # start grid after the night programs
+ times = times[2*Schedule.DAY_HOUR_START:] + times[:2*Schedule.DAY_HOUR_START]
nonstops = [[0, 2, 'Biodiversite'],
[2, 5, 'Reveries'],
grid[(row_start+step)%nb_lines][day_no] = TimeCell()
grid[(row_start+step)%nb_lines][day_no].add_schedule(schedule)
- # start grid at 5am
- grid = grid[2*5:] + grid[:2*5]
+ # start grid after the night programs
+ grid = grid[2*Schedule.DAY_HOUR_START:] + grid[:2*Schedule.DAY_HOUR_START]
# merge adjacent cells
for i in range(nb_lines):