mirror of
https://github.com/Comfy-Org/ComfyUI-Manager.git
synced 2025-12-17 02:12:58 +08:00
fix: missing version check from refactoring
- outdated notice is exposed by bug
This commit is contained in:
parent
dab8d08dde
commit
04beb63aa0
@ -21,7 +21,7 @@ sys.path.append(glob_path)
|
|||||||
import cm_global
|
import cm_global
|
||||||
from manager_util import *
|
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 '')
|
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__), '..'))
|
comfyui_manager_path = os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))
|
||||||
|
|||||||
@ -442,12 +442,10 @@ async def fetch_customnode_list(request):
|
|||||||
json_obj = await populate_github_stats(json_obj, "github-stats.json")
|
json_obj = await populate_github_stats(json_obj, "github-stats.json")
|
||||||
|
|
||||||
def is_ignored_notice(code):
|
def is_ignored_notice(code):
|
||||||
global version
|
|
||||||
|
|
||||||
if code is not None and code.startswith('#NOTICE_'):
|
if code is not None and code.startswith('#NOTICE_'):
|
||||||
try:
|
try:
|
||||||
notice_version = [int(x) for x in code[8:].split('.')]
|
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:
|
except Exception:
|
||||||
return False
|
return False
|
||||||
else:
|
else:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user