(request: WSGIRequest)
Enables or disables repeat depending on the given value.
    If enabled, a song is enqueued again after it finished playing.
Enables or disables repeat depending on the given value.
    If enabled, a song is enqueued again after it finished playing.
Enables or disables repeat depending on the given value . If enabled a song is enqueued again after it finished playing .
def set_repeat(request: WSGIRequest) -> None:
    """Enables or disables repeat depending on the given value.
    If enabled, a song is enqueued again after it finished playing."""
    enabled = request.POST.get("value") == "true"
    storage.set("repeat", enabled)
def set_repeat ( request : WSGIRequest ) -> None : enabled = request . POST . get ( "value" ) == "true" storage . set ( "repeat" , enabled )