(_request: WSGIRequest)
return HttpResponse(latest_version)
Returns the newest version number of Raveberry from PyPi.
Returns the newest version number of Raveberry from PyPi.
Returns the newest version number of Raveberry from PyPi .
def get_latest_version(_request: WSGIRequest) -> HttpResponse:
    """Returns the newest version number of Raveberry from PyPi."""
    latest_version = fetch_latest_version()
    if latest_version is None:
        return HttpResponseBadRequest("Could not determine latest version.")
    return HttpResponse(latest_version)
def get_latest_version ( _request : WSGIRequest ) -> HttpResponse : latest_version = fetch_latest_version ( ) if latest_version is None : return HttpResponseBadRequest ( "Could not determine latest version." ) return HttpResponse ( latest_version )