kopia lustrzana https://dev.funkwhale.audio/funkwhale/funkwhale
fix(ci): ignore `afterall` in codespell
Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2757>environments/review-docs-v2-ov-8q6uyo/deployments/19323
rodzic
83120cced2
commit
2b1228e620
|
@ -7,6 +7,7 @@ nd
|
|||
readby
|
||||
serie
|
||||
upto
|
||||
afterall
|
||||
|
||||
# Names
|
||||
nin
|
||||
|
|
|
@ -288,7 +288,9 @@ class TrackSerializer(OptionalDescriptionMixin, serializers.Serializer):
|
|||
def get_uploads(self, obj):
|
||||
uploads = getattr(obj, "playable_uploads", [])
|
||||
# we put local uploads first
|
||||
uploads = [TrackUploadSerializer(u).data for u in sort_uploads_for_listen(uploads)]
|
||||
uploads = [
|
||||
TrackUploadSerializer(u).data for u in sort_uploads_for_listen(uploads)
|
||||
]
|
||||
uploads = sorted(uploads, key=lambda u: u["is_local"], reverse=True)
|
||||
return list(uploads)
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue