(request: WSGIRequest)
return HttpResponse()
Prioritizes song by making it the first one in the queue.
Prioritizes song by making it the first one in the queue.
Prioritizes song by making it the first one in the queue .
def prioritize(request: WSGIRequest) -> HttpResponse:
    """Prioritizes song by making it the first one in the queue."""
    key = request.POST.get("key")
    if key is None:
        return HttpResponseBadRequest()
    ikey = int(key)
    playback.queue.prioritize(ikey)
    return HttpResponse()
def prioritize ( request : WSGIRequest ) -> HttpResponse : key = request . POST . get ( "key" ) if key is None : return HttpResponseBadRequest ( ) ikey = int ( key ) playback . queue . prioritize ( ikey ) return HttpResponse ( )