mirror of
https://git.datalinker.icu/ltdrdata/ComfyUI-Manager
synced 2025-12-09 22:24:23 +08:00
remove useless code
This commit is contained in:
parent
e26a9e75c6
commit
5ef58652bf
@ -42,7 +42,7 @@ import manager_downloader
|
||||
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 '')
|
||||
|
||||
|
||||
|
||||
@ -1640,13 +1640,13 @@ export class CustomNodesManager {
|
||||
}
|
||||
|
||||
if(unresolved_missing_nodes.size > 0) {
|
||||
await this.getMissingNodesLegacy(hashMap, unresolved_missing_nodes, registered_nodes);
|
||||
await this.getMissingNodesLegacy(hashMap, unresolved_missing_nodes);
|
||||
}
|
||||
|
||||
return hashMap;
|
||||
}
|
||||
|
||||
async getMissingNodesLegacy(hashMap, missing_nodes, registered_nodes) {
|
||||
async getMissingNodesLegacy(hashMap, missing_nodes) {
|
||||
const mode = manager_instance.datasrc_combo.value;
|
||||
this.showStatus(`Loading missing nodes (${mode}) ...`);
|
||||
const res = await fetchData(`/customnode/getmappings?mode=${mode}`);
|
||||
@ -1687,20 +1687,15 @@ export class CustomNodesManager {
|
||||
|
||||
let unresolved_missing_nodes = new Set();
|
||||
for (let node_type of missing_nodes) {
|
||||
if(node_type.startsWith('workflow/') || node_type.startsWith('workflow>'))
|
||||
continue;
|
||||
|
||||
if (!registered_nodes.has(node_type)) {
|
||||
const packs = name_to_packs[node_type.trim()];
|
||||
if(packs)
|
||||
packs.forEach(url => {
|
||||
unresolved_missing_nodes.add(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);
|
||||
}
|
||||
const packs = name_to_packs[node_type.trim()];
|
||||
if(packs)
|
||||
packs.forEach(url => {
|
||||
unresolved_missing_nodes.add(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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -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 = "3.27"
|
||||
version = "3.27.1"
|
||||
license = { file = "LICENSE.txt" }
|
||||
dependencies = ["GitPython", "PyGithub", "matrix-client==0.4.0", "transformers", "huggingface-hub>0.20", "typer", "rich", "typing-extensions", "toml", "uv", "chardet"]
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user