Fix version check (#580)

This commit is contained in:
Nikhil Rao 2023-02-20 22:00:03 -08:00 committed by GitHub
parent 313dd7dc3b
commit e9888337c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -480,7 +480,7 @@ def is_latest_template() -> bool:
if not os.path.exists(constants.PCVERSION_APP_FILE): if not os.path.exists(constants.PCVERSION_APP_FILE):
return False return False
with open(constants.PCVERSION_APP_FILE) as f: # type: ignore with open(constants.PCVERSION_APP_FILE) as f: # type: ignore
app_version = f.read() app_version = json.load(f)["version"]
return app_version >= template_version return app_version >= template_version