benedikt-bartscher преди 10 месеца
родител
ревизия
460afc2e10
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      reflex/utils/prerequisites.py

+ 1 - 1
reflex/utils/prerequisites.py

@@ -976,7 +976,7 @@ def is_latest_template() -> bool:
     json_file = get_web_dir() / constants.Reflex.JSON
     json_file = get_web_dir() / constants.Reflex.JSON
     if not json_file.exists():
     if not json_file.exists():
         return False
         return False
-    app_version = json.load(json_file.open()).get("version")
+    app_version = json.loads(json_file.read_text()).get("version")
     return app_version == constants.Reflex.VERSION
     return app_version == constants.Reflex.VERSION