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
django-panik-nonstop
Commits
5ec5cfc0
Commit
5ec5cfc0
authored
May 18, 2020
by
fred
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ignore jingles with unknown duration
parent
d5ce506e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
nonstop/models.py
nonstop/models.py
+1
-1
No files found.
nonstop/models.py
View file @
5ec5cfc0
...
...
@@ -223,7 +223,7 @@ class ScheduledDiffusion(models.Model):
if
self
.
is_stream
():
return
self
.
diffusion
.
end_datetime
dt
=
self
.
diffusion
.
datetime
if
self
.
jingle
:
if
self
.
jingle
and
self
.
jingle
.
duration
:
dt
+=
self
.
jingle
.
duration
dt
+=
datetime
.
timedelta
(
seconds
=
self
.
soundfile
.
duration
)
return
dt
...
...
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