Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
radiopanik
panikweb
Commits
ce9e8eaf
Commit
ce9e8eaf
authored
Nov 29, 2015
by
fred
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
playlist: fix links for nonstop spanning midnight
parent
42c05d9a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
panikweb/views.py
panikweb/views.py
+1
-2
No files found.
panikweb/views.py
View file @
ce9e8eaf
...
...
@@ -110,8 +110,7 @@ class EmissionDetailView(DetailView, EmissionMixin):
else
:
today
=
date
.
today
()
dates
=
[
today
-
timedelta
(
days
=
x
)
for
x
in
range
(
7
)]
if
datetime
.
now
().
time
()
<
nonstop_object
.
start
and
not
(
nonstop_object
.
end
<
nonstop_object
.
start
):
if
datetime
.
now
().
time
()
<
nonstop_object
.
start
:
dates
=
dates
[
1
:]
context
[
'nonstop'
]
=
nonstop_object
context
[
'nonstop_dates'
]
=
dates
...
...
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