(_request: WSGIRequest)
return JsonResponse(ssids[:-1], safe=False)
List all ssids that can currently be seen.
List all ssids that can currently be seen.
List all ssids that can currently be seen .
def available_ssids(_request: WSGIRequest) -> JsonResponse:
    """List all ssids that can currently be seen."""
    output = subprocess.check_output(
        ["sudo", "/usr/local/sbin/raveberry/list_available_ssids"]
    ).decode()
    ssids = output.split("\n")
    return JsonResponse(ssids[:-1], safe=False)
def available_ssids ( _request : WSGIRequest ) -> JsonResponse : output = subprocess . check_output ( [ "sudo" , "/usr/local/sbin/raveberry/list_available_ssids" ] ) . decode ( ) ssids = output . split ( "\n" ) return JsonResponse ( ssids [ : - 1 ] , safe = False )