diff --git a/panikweb/views.py b/panikweb/views.py index 103651d385f67513a99b9ae0521ee950d4e188a8..bdfcc414e93966c68ef45809ad6a0432944c0d3d 100644 --- a/panikweb/views.py +++ b/panikweb/views.py @@ -184,15 +184,15 @@ class Grid(TemplateView): if nonstop.start < nonstop.end: nonstops.append([nonstop.start.hour + nonstop.start.minute/60., nonstop.end.hour + nonstop.end.minute/60., - nonstop.title]) + nonstop.title, nonstop.slug]) else: # crossing midnight nonstops.append([nonstop.start.hour + nonstop.start.minute/60., 24, - nonstop.title]) + nonstop.title, nonstop.slug]) nonstops.append([0, nonstop.end.hour + nonstop.end.minute/60., - nonstop.title]) + nonstop.title, nonstop.slug]) nonstops.sort() for i in range(nb_lines): @@ -203,6 +203,7 @@ class Grid(TemplateView): nonstop = [x for x in nonstops if i>=x[0]*2 and i