From 04beb63aa045d9bd3f0ae8d2b44c6fad4b51ab3b Mon Sep 17 00:00:00 2001 From: "Dr.Lt.Data" Date: Wed, 24 Apr 2024 20:26:23 +0900 Subject: [PATCH] fix: missing version check from refactoring - outdated notice is exposed by bug --- glob/manager_core.py | 2 +- glob/manager_server.py | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/glob/manager_core.py b/glob/manager_core.py index 2aa189b..e79c499 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, 22, 1] +version = [2, 22, 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 3111c3c..0437f6f 100644 --- a/glob/manager_server.py +++ b/glob/manager_server.py @@ -442,12 +442,10 @@ async def fetch_customnode_list(request): json_obj = await populate_github_stats(json_obj, "github-stats.json") def is_ignored_notice(code): - global version - if code is not None and code.startswith('#NOTICE_'): try: notice_version = [int(x) for x in code[8:].split('.')] - return notice_version[0] < version[0] or (notice_version[0] == version[0] and notice_version[1] <= version[1]) + return notice_version[0] < core.version[0] or (notice_version[0] == core.version[0] and notice_version[1] <= core.version[1]) except Exception: return False else: