nb_lines = 2 * 24 # the cells are half hours
grid = []
+ Schedule.DAY_HOUR_START = 12
+
times = ['%02d:%02d' % (x/2, x%2*30) for x in range(nb_lines)]
# start grid after the night programs
times = times[2*Schedule.DAY_HOUR_START:] + times[:2*Schedule.DAY_HOUR_START]
except IndexError:
pass
- # cut night at 3am
- grid = grid[:42]
- times = times[:42]
+ # cut night
+ grid = grid[:28]
+ times = times[:28]
context['grid'] = grid
context['times'] = times