Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
vachan-maker
funkwhale
Commits
7bcb8d8c
Commit
7bcb8d8c
authored
Mar 28, 2021
by
Fanyx
Committed by
Georg Krause
Mar 28, 2021
Browse files
change struct to reflect subsonic api specs, fixes #1374
parent
38f0fd3b
Changes
3
Hide whitespace changes
Inline
Side-by-side
api/funkwhale_api/subsonic/serializers.py
View file @
7bcb8d8c
...
...
@@ -264,7 +264,7 @@ def get_user_detail_data(user):
"playlistRole"
:
"true"
,
"streamRole"
:
"true"
,
"jukeboxRole"
:
"true"
,
"folder"
:
[
{
"value"
:
f
[
"id"
]
}
for
f
in
get_folders
(
user
)],
"folder"
:
[
f
[
"id"
]
for
f
in
get_folders
(
user
)],
}
...
...
api/tests/subsonic/test_views.py
View file @
7bcb8d8c
...
...
@@ -810,8 +810,7 @@ def test_get_user(f, db, logged_in_api_client, factories):
"coverArtRole"
:
"false"
,
"shareRole"
:
"false"
,
"folder"
:
[
{
"value"
:
f
[
"id"
]}
for
f
in
serializers
.
get_folders
(
logged_in_api_client
.
user
)
f
[
"id"
]
for
f
in
serializers
.
get_folders
(
logged_in_api_client
.
user
)
],
}
}
...
...
changes/changelog.d/fix_getuser_serializer.bugfix
0 → 100644
View file @
7bcb8d8c
issue="1374"
content="Fixed a small discrepancy to the subsonic api"
category="bugfix"
\ No newline at end of file
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