mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-04 10:09:20 +02:00
See #272: linting and changelog
This commit is contained in:
parent
ac4bba816d
commit
bcd22eb38c
6 changed files with 39 additions and 29 deletions
|
@ -200,8 +200,8 @@ class SubsonicViewSet(viewsets.GenericViewSet):
|
|||
if not upload:
|
||||
return response.Response(status=404)
|
||||
|
||||
format = data.get('format', 'raw')
|
||||
if format == 'raw':
|
||||
format = data.get("format", "raw")
|
||||
if format == "raw":
|
||||
format = None
|
||||
return music_views.handle_serve(upload=upload, user=request.user, format=format)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue