From b31931333ee6882b39a61915ef361eccec958ea2 Mon Sep 17 00:00:00 2001 From: "dr.lt.data" Date: Tue, 19 Sep 2023 15:44:05 +0900 Subject: [PATCH] fix: message fix. --- __init__.py | 5 ++++- js/comfyui-manager.js | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/__init__.py b/__init__.py index 2090218c..b641f319 100644 --- a/__init__.py +++ b/__init__.py @@ -55,7 +55,7 @@ sys.path.append('../..') from torchvision.datasets.utils import download_url # ensure .js -print("### Loading: ComfyUI-Manager (V0.28.8)") +print("### Loading: ComfyUI-Manager (V0.28.9)") comfy_ui_required_revision = 1240 comfy_ui_revision = "Unknown" @@ -315,6 +315,9 @@ def git_repo_has_updates(path, do_fetch=False, do_update=False): if commit_hash != new_commit_hash: print(f"\x1b[2K\rUpdated: {path}") + return True + else: + return False except Exception as e: print(f"Updating failed: {path}\n{e}") diff --git a/js/comfyui-manager.js b/js/comfyui-manager.js index 88e78580..5f704bf8 100644 --- a/js/comfyui-manager.js +++ b/js/comfyui-manager.js @@ -260,7 +260,7 @@ async function updateAll(update_check_checkbox) { const response1 = await api.fetchApi('/comfyui_manager/update_comfyui'); const response2 = await api.fetchApi(`/customnode/update_all?mode=${mode}`); - if(response1.status != 200 || response2.status != 200) { + if(response1.status != 200 || response2.status != 201) { app.ui.dialog.show('Failed to update ComfyUI or several extensions.

See terminal log.
'); app.ui.dialog.element.style.zIndex = 9999; return false;