(request: WSGIRequest)
Enables or disables shuffle depending on the given value.
    If enabled, a random song in the queue is chosen as the next one.
    If not, the first one is chosen.
Enables or disables shuffle depending on the given value.
    If enabled, a random song in the queue is chosen as the next one.
    If not, the first one is chosen.
Enables or disables shuffle depending on the given value . If enabled a random song in the queue is chosen as the next one . If not the first one is chosen .
def set_shuffle(request: WSGIRequest) -> None:
    """Enables or disables shuffle depending on the given value.
    If enabled, a random song in the queue is chosen as the next one.
    If not, the first one is chosen."""
    enabled = request.POST.get("value") == "true"
    storage.set("shuffle", enabled)
def set_shuffle ( request : WSGIRequest ) -> None : enabled = request . POST . get ( "value" ) == "true" storage . set ( "shuffle" , enabled )