(_request: WSGIRequest)
return JsonResponse(ssids[:-1], safe=False)
Return the list of ssids that this Raspberry Pi was connected to in the past.
Return the list of ssids that this Raspberry Pi was connected to in the past.
Return the list of ssids that this Raspberry Pi was connected to in the past .
def stored_ssids(_request: WSGIRequest) -> JsonResponse:
    """Return the list of ssids that this Raspberry Pi was connected to in the past."""
    output = subprocess.check_output(
        ["sudo", "/usr/local/sbin/raveberry/list_stored_ssids"]
    ).decode()
    ssids = output.split("\n")
    return JsonResponse(ssids[:-1], safe=False)
def stored_ssids ( _request : WSGIRequest ) -> JsonResponse : output = subprocess . check_output ( [ "sudo" , "/usr/local/sbin/raveberry/list_stored_ssids" ] ) . decode ( ) ssids = output . split ( "\n" ) return JsonResponse ( ssids [ : - 1 ] , safe = False )