Commit 3d6d245c authored by fred's avatar fred

ignore 0-minutes nonstop slots

(nonstop slots are kept in base because tracks link to them)
parent a2bad26c
......@@ -282,6 +282,8 @@ class Grid(TemplateView):
nonstops = []
for nonstop in Nonstop.objects.all():
if nonstop.start == nonstop.end:
continue
if nonstop.start < nonstop.end:
nonstops.append([nonstop.start.hour + nonstop.start.minute/60.,
nonstop.end.hour + nonstop.end.minute/60.,
......
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