Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
AURA
engine-api
Commits
12b1393b
Commit
12b1393b
authored
Dec 13, 2021
by
david
Browse files
Add another `None` check.
parent
e469e930
Pipeline
#1146
passed with stages
in 3 minutes and 36 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/models.py
View file @
12b1393b
...
...
@@ -122,7 +122,7 @@ class PlayLog(db.Model):
if
track
:
# Station fallback may not provide a duration. Take this one, it's better than nothing.
if
track
.
track_duration
==
0
:
if
track
.
track_duration
==
0
or
not
track
.
track_duration
:
return
track
# Preferably only get playlogs which are known for still being on air
...
...
Write
Preview
Supports
Markdown
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