From 285d0c067ff7d61a93fae48dc64688f754a728d6 Mon Sep 17 00:00:00 2001 From: "Dr.Lt.Data" Date: Thu, 14 Nov 2024 18:34:50 +0900 Subject: [PATCH] fix: message fix --- modules/manager_ext_core.py | 2 +- modules/manager_ext_server.py | 12 ++++++------ pyproject.toml | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/modules/manager_ext_core.py b/modules/manager_ext_core.py index 598868ba..ca2c4038 100644 --- a/modules/manager_ext_core.py +++ b/modules/manager_ext_core.py @@ -11,7 +11,7 @@ from comfy.cli_args import args import latent_preview -version_code = [3, 0] +version_code = [3, 0, 1] version_str = f"V{version_code[0]}.{version_code[1]}" + (f'.{version_code[2]}' if len(version_code) > 2 else '') DEFAULT_CHANNEL = "https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main" diff --git a/modules/manager_ext_server.py b/modules/manager_ext_server.py index 3399c325..3a3eeeea 100644 --- a/modules/manager_ext_server.py +++ b/modules/manager_ext_server.py @@ -16,10 +16,9 @@ import cm_global from . import manager_ext_core as ext_core from . import manager_ext_util -print(f"### Loading: ComfyUI-Manager ({core.version_str})") +print(f"### Loading: ComfyUI-Manager (ext) ({ext_core.version_str})") comfy_ui_hash = "-" -comfyui_tag = None SECURITY_MESSAGE_MIDDLE_OR_BELOW = f"ERROR: To use this action, a security_level of `middle or below` is required. Please contact the administrator.\nReference: https://github.com/ltdrdata/ComfyUI-Manager#security-policy" SECURITY_MESSAGE_NORMAL_MINUS = f"ERROR: To use this feature, you must either set '--listen' to a local IP and set the security level to 'normal-' or lower, or set the security level to 'middle' or 'weak'. Please contact the administrator.\nReference: https://github.com/ltdrdata/ComfyUI-Manager#security-policy" @@ -618,12 +617,13 @@ async def get_notice(request): if match: markdown_content = match.group(1) - if comfyui_tag: - markdown_content += f"
ComfyUI: {comfyui_tag}
Commit Date: {core.comfy_ui_commit_datetime.date()}" + if core.comfyui_tag: + markdown_content += f"
ComfyUI: {core.comfyui_tag}
Commit Date: {core.comfy_ui_commit_datetime.date()}" else: - markdown_content += f"
ComfyUI: {core.comfy_ui_revision}[{comfy_ui_hash[:6]}]({core.comfy_ui_commit_datetime.date()})" + 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: {core.version_str}" + markdown_content += f"
manager-core: {core.version_str}" + markdown_content += f"
manager-ext: {ext_core.version_str}" markdown_content = add_target_blank(markdown_content) diff --git a/pyproject.toml b/pyproject.toml index 6cb9eac2..948e534c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ [project] name = "comfyui-manager" description = "ComfyUI-Manager provides features to install and manage custom nodes for ComfyUI, as well as various functionalities to assist with ComfyUI." -version = "3.0" +version = "3.0.1" license = { file = "LICENSE.txt" } dependencies = ["GitPython", "PyGithub", "matrix-client==0.4.0", "transformers", "huggingface-hub>0.20", "typer", "rich", "typing-extensions"]