mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-03 21:29:16 +02:00
change struct to reflect subsonic api specs, fixes #1374
This commit is contained in:
parent
38f0fd3b60
commit
7bcb8d8c89
3 changed files with 5 additions and 3 deletions
|
@ -264,7 +264,7 @@ def get_user_detail_data(user):
|
||||||
"playlistRole": "true",
|
"playlistRole": "true",
|
||||||
"streamRole": "true",
|
"streamRole": "true",
|
||||||
"jukeboxRole": "true",
|
"jukeboxRole": "true",
|
||||||
"folder": [{"value": f["id"]} for f in get_folders(user)],
|
"folder": [f["id"] for f in get_folders(user)],
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -810,8 +810,7 @@ def test_get_user(f, db, logged_in_api_client, factories):
|
||||||
"coverArtRole": "false",
|
"coverArtRole": "false",
|
||||||
"shareRole": "false",
|
"shareRole": "false",
|
||||||
"folder": [
|
"folder": [
|
||||||
{"value": f["id"]}
|
f["id"] for f in serializers.get_folders(logged_in_api_client.user)
|
||||||
for f in serializers.get_folders(logged_in_api_client.user)
|
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
3
changes/changelog.d/fix_getuser_serializer.bugfix
Normal file
3
changes/changelog.d/fix_getuser_serializer.bugfix
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
issue="1374"
|
||||||
|
content="Fixed a small discrepancy to the subsonic api"
|
||||||
|
category="bugfix"
|
Loading…
Add table
Add a link
Reference in a new issue