From 63fb2c6f117eff072ec82f790ca72e0a8f03ded0 Mon Sep 17 00:00:00 2001 From: "Dr.Lt.Data" Date: Sat, 20 Apr 2024 16:11:07 +0900 Subject: [PATCH] fix: 'version_str' is not defined https://github.com/ltdrdata/ComfyUI-Manager/issues/589 --- glob/manager_core.py | 2 +- glob/manager_server.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/glob/manager_core.py b/glob/manager_core.py index 8b9f25a..566e687 100644 --- a/glob/manager_core.py +++ b/glob/manager_core.py @@ -21,7 +21,7 @@ sys.path.append(glob_path) import cm_global from manager_util import * -version = [2, 20, 1] +version = [2, 20, 2] version_str = f"V{version[0]}.{version[1]}" + (f'.{version[2]}' if len(version) > 2 else '') comfyui_manager_path = os.path.abspath(os.path.join(os.path.dirname(__file__), '..')) diff --git a/glob/manager_server.py b/glob/manager_server.py index 4ee7584..c8431f9 100644 --- a/glob/manager_server.py +++ b/glob/manager_server.py @@ -1094,7 +1094,7 @@ async def get_notice(request): markdown_content = match.group(1) markdown_content += f"
ComfyUI: {core.comfy_ui_revision}[{comfy_ui_hash[:6]}]({core.comfy_ui_commit_datetime.date()})" # markdown_content += f"
         ()" - markdown_content += f"
Manager: {version_str}" + markdown_content += f"
Manager: {core.version_str}" try: if core.comfy_ui_required_commit_datetime.date() > core.comfy_ui_commit_datetime.date():