(request: WSGIRequest)
Sets the probability with which an alarm is triggered after each song.
Sets the probability with which an alarm is triggered after each song.
Sets the probability with which an alarm is triggered after each song .
def set_alarm_probability(request: WSGIRequest) -> None:
    """Sets the probability with which an alarm is triggered after each song."""
    value = float(request.POST.get("value"))  # type: ignore
    storage.set("alarm_probability", value)
def set_alarm_probability ( request : WSGIRequest ) -> None : value = float ( request . POST . get ( "value" ) ) # type: ignore storage . set ( "alarm_probability" , value )