From a580a5a4465d3d133d4dfd14ebf99dc72e7207d1 Mon Sep 17 00:00:00 2001 From: "Dr.Lt.Data" Date: Sun, 21 Jul 2024 12:17:31 +0900 Subject: [PATCH] patch again... --- glob/manager_core.py | 2 +- glob/manager_server.py | 2 +- pyproject.toml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/glob/manager_core.py b/glob/manager_core.py index e2b7ab97..a04c4e66 100644 --- a/glob/manager_core.py +++ b/glob/manager_core.py @@ -23,7 +23,7 @@ sys.path.append(glob_path) import cm_global from manager_util import * -version = [2, 46, 4] +version = [2, 46, 5] version_str = f"V{version[0]}.{version[1]}" + (f'.{version[2]}' if len(version) > 2 else '') diff --git a/glob/manager_server.py b/glob/manager_server.py index ef716f0b..7fe5f564 100644 --- a/glob/manager_server.py +++ b/glob/manager_server.py @@ -989,7 +989,7 @@ async def install_model(request): print(f"ERROR: To use this action, a security_level of `middle or below` is required. Please contact the administrator.") return web.Response(status=403) - if not json_data['name'].endswith('.safetensors') and not is_allowed_security_level('high'): + if not json_data['filename'].endswith('.safetensors') and not is_allowed_security_level('high'): print(f"ERROR: To use this feature, you must set '--listen' to a local IP and set the security level to 'middle' or 'weak'. Please contact the administrator.") return web.Response(status=403) diff --git a/pyproject.toml b/pyproject.toml index de4b03be..041057b7 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 = "2.46.4" +version = "2.46.5" license = "LICENSE" dependencies = ["GitPython", "PyGithub", "matrix-client==0.4.0", "transformers", "huggingface-hub>0.20", "typer", "rich", "typing-extensions"]