Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Simon Daron
panikweb
Commits
3d6d245c
Commit
3d6d245c
authored
Oct 05, 2016
by
fred
Browse files
ignore 0-minutes nonstop slots
(nonstop slots are kept in base because tracks link to them)
parent
a2bad26c
Changes
1
Hide whitespace changes
Inline
Side-by-side
panikweb/views.py
View file @
3d6d245c
...
...
@@ -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.
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment