(request: WSGIRequest)
return HttpResponse()
Shuffles the queue. Only admin is permitted to do this.
Shuffles the queue. Only admin is permitted to do this.
Shuffles the queue . Only admin is permitted to do this .
def shuffle_all(request: WSGIRequest) -> HttpResponse:
    """Shuffles the queue. Only admin is permitted to do this."""
    if not user_manager.is_admin(request.user):
        return HttpResponseForbidden()
    playback.queue.shuffle()
    return HttpResponse()
def shuffle_all ( request : WSGIRequest ) -> HttpResponse : if not user_manager . is_admin ( request . user ) : return HttpResponseForbidden ( ) playback . queue . shuffle ( ) return HttpResponse ( )