Explorar el Código

Fix version check (#580)

Nikhil Rao hace 2 años
padre
commit
e9888337c4
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      pynecone/utils.py

+ 1 - 1
pynecone/utils.py

@@ -480,7 +480,7 @@ def is_latest_template() -> bool:
     if not os.path.exists(constants.PCVERSION_APP_FILE):
         return False
     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