remove useless code

This commit is contained in:
Dr.Lt.Data 2025-02-26 21:19:22 +09:00
parent e26a9e75c6
commit 5ef58652bf
3 changed files with 13 additions and 18 deletions

View File

@ -42,7 +42,7 @@ import manager_downloader
from node_package import InstalledNodePackage from node_package import InstalledNodePackage
version_code = [3, 27] version_code = [3, 27, 1]
version_str = f"V{version_code[0]}.{version_code[1]}" + (f'.{version_code[2]}' if len(version_code) > 2 else '') version_str = f"V{version_code[0]}.{version_code[1]}" + (f'.{version_code[2]}' if len(version_code) > 2 else '')

View File

@ -1640,13 +1640,13 @@ export class CustomNodesManager {
} }
if(unresolved_missing_nodes.size > 0) { if(unresolved_missing_nodes.size > 0) {
await this.getMissingNodesLegacy(hashMap, unresolved_missing_nodes, registered_nodes); await this.getMissingNodesLegacy(hashMap, unresolved_missing_nodes);
} }
return hashMap; return hashMap;
} }
async getMissingNodesLegacy(hashMap, missing_nodes, registered_nodes) { async getMissingNodesLegacy(hashMap, missing_nodes) {
const mode = manager_instance.datasrc_combo.value; const mode = manager_instance.datasrc_combo.value;
this.showStatus(`Loading missing nodes (${mode}) ...`); this.showStatus(`Loading missing nodes (${mode}) ...`);
const res = await fetchData(`/customnode/getmappings?mode=${mode}`); const res = await fetchData(`/customnode/getmappings?mode=${mode}`);
@ -1687,20 +1687,15 @@ export class CustomNodesManager {
let unresolved_missing_nodes = new Set(); let unresolved_missing_nodes = new Set();
for (let node_type of missing_nodes) { for (let node_type of missing_nodes) {
if(node_type.startsWith('workflow/') || node_type.startsWith('workflow>')) const packs = name_to_packs[node_type.trim()];
continue; if(packs)
packs.forEach(url => {
if (!registered_nodes.has(node_type)) { unresolved_missing_nodes.add(url);
const packs = name_to_packs[node_type.trim()]; });
if(packs) else {
packs.forEach(url => { for(let j in regex_to_pack) {
unresolved_missing_nodes.add(url); if(regex_to_pack[j].regex.test(node_type)) {
}); unresolved_missing_nodes.add(regex_to_pack[j].url);
else {
for(let j in regex_to_pack) {
if(regex_to_pack[j].regex.test(node_type)) {
unresolved_missing_nodes.add(regex_to_pack[j].url);
}
} }
} }
} }

View File

@ -1,7 +1,7 @@
[project] [project]
name = "comfyui-manager" 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." description = "ComfyUI-Manager provides features to install and manage custom nodes for ComfyUI, as well as various functionalities to assist with ComfyUI."
version = "3.27" version = "3.27.1"
license = { file = "LICENSE.txt" } license = { file = "LICENSE.txt" }
dependencies = ["GitPython", "PyGithub", "matrix-client==0.4.0", "transformers", "huggingface-hub>0.20", "typer", "rich", "typing-extensions", "toml", "uv", "chardet"] dependencies = ["GitPython", "PyGithub", "matrix-client==0.4.0", "transformers", "huggingface-hub>0.20", "typer", "rich", "typing-extensions", "toml", "uv", "chardet"]