mirror of
https://github.com/Comfy-Org/ComfyUI-Manager.git
synced 2025-12-17 10:22:59 +08:00
fixed: /customnode/versions - Issue where a 400 error occurred when no versions were available in CNR.
https://github.com/ltdrdata/ComfyUI-Manager/issues/1397
This commit is contained in:
parent
4e92b06baa
commit
29ab428979
@ -36,7 +36,7 @@ import manager_downloader
|
|||||||
from node_package import InstalledNodePackage
|
from node_package import InstalledNodePackage
|
||||||
|
|
||||||
|
|
||||||
version_code = [3, 3, 9]
|
version_code = [3, 3, 10]
|
||||||
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 '')
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -816,7 +816,7 @@ async def get_cnr_versions(request):
|
|||||||
node_name = request.match_info.get("node_name", None)
|
node_name = request.match_info.get("node_name", None)
|
||||||
versions = core.cnr_utils.all_versions_of_node(node_name)
|
versions = core.cnr_utils.all_versions_of_node(node_name)
|
||||||
|
|
||||||
if versions:
|
if versions is not None:
|
||||||
return web.json_response(versions, content_type='application/json')
|
return web.json_response(versions, content_type='application/json')
|
||||||
|
|
||||||
return web.Response(status=400)
|
return web.Response(status=400)
|
||||||
|
|||||||
@ -1190,7 +1190,7 @@ export class CustomNodesManager {
|
|||||||
version_cnt++;
|
version_cnt++;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(rowItem.cnr_latest != rowItem.originalData.active_version) {
|
if(rowItem.cnr_latest != rowItem.originalData.active_version && obj.length > 0) {
|
||||||
versions.push('latest');
|
versions.push('latest');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -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.3.9"
|
version = "3.3.10"
|
||||||
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"]
|
dependencies = ["GitPython", "PyGithub", "matrix-client==0.4.0", "transformers", "huggingface-hub>0.20", "typer", "rich", "typing-extensions"]
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user