Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
radiopanik
django-panik-nonstop
Commits
ef9c79bb
Commit
ef9c79bb
authored
Oct 13, 2021
by
fred
Browse files
stamina: don't factor in some tolerance for earlier stop for streams
parent
d0844055
Changes
1
Hide whitespace changes
Inline
Side-by-side
nonstop/management/commands/stamina.py
View file @
ef9c79bb
...
...
@@ -451,6 +451,9 @@ class Command(BaseCommand):
# factor in some tolerance for diffusions a bit shorter than known, so
# they are not replayed from the start if they finished too early.
tolerance
=
datetime
.
timedelta
(
seconds
=
60
)
if
diffusion
and
hasattr
(
diffusion
,
'is_stream'
)
and
diffusion
.
is_stream
():
# unless it's a stream
tolerance
=
datetime
.
timedelta
(
seconds
=
0
)
# note it shouldn't be possible to have both diffusion and occurences
# running at the moment.
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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