]> git.0d.be Git - panikweb.git/commitdiff
grid: add a time label for the 'Reveries' music part
authorFrédéric Péters <fpeters@0d.be>
Fri, 16 Aug 2013 13:11:21 +0000 (15:11 +0200)
committerFrédéric Péters <fpeters@0d.be>
Fri, 16 Aug 2013 13:11:51 +0000 (15:11 +0200)
panikweb/views.py

index cce87ad638307633967b323b7cac512e3b5635cd..f2b45085d2f29d5ed3ae1fb2472edd435ef02e98 100644 (file)
@@ -86,6 +86,8 @@ class Grid(TemplateView):
             nonstop = [x for x in nonstops if i>=x[0]*2 and i<x[1]*2][0]
             for time_cell in grid[-1]:
                 time_cell.nonstop = nonstop[2]
+                if nonstop[2] == 'Reveries':
+                    time_cell.time_label = '02:00-05:00'
 
         for schedule in Schedule.objects.all():
             row_start = schedule.datetime.hour * 2 + \