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
Maxence Bothorel
funkwhale
Commits
497f81e5
Verified
Commit
497f81e5
authored
Mar 20, 2018
by
Eliot Berriot
Browse files
Typo in returned api payload
parent
244ebd7a
Changes
2
Hide whitespace changes
Inline
Side-by-side
api/funkwhale_api/playlists/views.py
View file @
497f81e5
...
...
@@ -43,7 +43,7 @@ class PlaylistViewSet(
serializer
=
serializers
.
PlaylistTrackSerializer
(
plts
,
many
=
True
)
data
=
{
'count'
:
len
(
plts
),
'result'
:
serializer
.
data
'result
s
'
:
serializer
.
data
}
return
Response
(
data
,
status
=
200
)
...
...
api/tests/playlists/test_views.py
View file @
497f81e5
...
...
@@ -152,4 +152,4 @@ def test_can_list_tracks_from_playlist(
serialized_plt
=
serializers
.
PlaylistTrackSerializer
(
plt
).
data
assert
response
.
data
[
'count'
]
==
1
assert
response
.
data
[
'result'
][
0
]
==
serialized_plt
assert
response
.
data
[
'result
s
'
][
0
]
==
serialized_plt
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