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
funkwhale
funkwhale
Commits
cec91ec2
Commit
cec91ec2
authored
May 09, 2021
by
Ciaran Ainsworth
Committed by
Georg Krause
May 19, 2021
Browse files
Fix linting issue
parent
896f648a
Pipeline
#14389
passed with stages
in 5 minutes and 3 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
api/funkwhale_api/history/views.py
View file @
cec91ec2
...
...
@@ -56,7 +56,9 @@ class ListeningViewSet(
)
tracks
=
Track
.
objects
.
with_playable_uploads
(
music_utils
.
get_actor_from_request
(
self
.
request
)
).
select_related
(
"artist"
,
"album__artist"
,
"attributed_to"
,
"artist__attachment_cover"
)
).
select_related
(
"artist"
,
"album__artist"
,
"attributed_to"
,
"artist__attachment_cover"
)
return
queryset
.
prefetch_related
(
Prefetch
(
"track"
,
queryset
=
tracks
))
def
get_serializer_context
(
self
):
...
...
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