fix: ignore nightly and develop in version check (#2242)

This commit is contained in:
Hayden 2023-03-12 13:41:41 -08:00 committed by GitHub
parent 9650ba9b00
commit 8d79773bf6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -55,7 +55,7 @@ class AdminAboutController(BaseAdminController):
email_ready=settings.SMTP_ENABLE,
ldap_ready=settings.LDAP_ENABLED,
base_url_set=settings.BASE_URL != "http://localhost:8080",
is_up_to_date=get_latest_version() == APP_VERSION,
is_up_to_date=APP_VERSION == "develop" or APP_VERSION == "nightly" or get_latest_version() == APP_VERSION,
)
@router.get("/docker/validate", response_model=DockerVolumeText)