(_request: WSGIRequest)
return JsonResponse(False, safe=False)
Checks whether newer Raveberry version is available.
Checks whether newer Raveberry version is available.
Checks whether newer Raveberry version is available .
def upgrade_available(_request: WSGIRequest) -> HttpResponse:
    """Checks whether newer Raveberry version is available."""
    from core.settings import system

    latest_version = system.fetch_latest_version()
    current_version = conf.VERSION
    if latest_version and latest_version != current_version:
        return JsonResponse(True, safe=False)
    return JsonResponse(False, safe=False)
def upgrade_available ( _request : WSGIRequest ) -> HttpResponse : from core . settings import system latest_version = system . fetch_latest_version ( ) current_version = conf . VERSION if latest_version and latest_version != current_version : return JsonResponse ( True , safe = False ) return JsonResponse ( False , safe = False )