fixed: broken db item

fixed: robust getlist

https://github.com/ltdrdata/ComfyUI-Manager/issues/1508
This commit is contained in:
Dr.Lt.Data 2025-02-02 14:52:46 +09:00
parent 0a67145d80
commit 268b84a2b6
3 changed files with 19 additions and 15 deletions

View File

@ -20417,15 +20417,15 @@
"description": "This my implemenation of a `pipe` in ComfyUI. Is it better or worse than others? No idea." "description": "This my implemenation of a `pipe` in ComfyUI. Is it better or worse than others? No idea."
}, },
{ {
"title": "A2V Multi Image Composite",
"author": "AiartvnTeam", "author": "AiartvnTeam",
"title": "A2V Multi Image Composite",
"id": "Aiartvn", "id": "Aiartvn",
"description": "Node for compositing multiple images with interactive preview and layer management", "reference": "https://github.com/aiartvn/A2V_Multi_Image_Composite",
"repository": "https://github.com/aiartvn/A2V_Multi_Image_Composite",
"install_type": "git-clone",
"files": [ "files": [
"https://github.com/aiartvn/A2V_Multi_Image_Composite" "https://github.com/aiartvn/A2V_Multi_Image_Composite"
], ],
"description": "Node for compositing multiple images with interactive preview and layer management",
"install_type": "git-clone",
"tags": ["image", "composite", "layer", "blend", "transform"] "tags": ["image", "composite", "layer", "blend", "transform"]
}, },

View File

@ -4,6 +4,7 @@ description:
""" """
import json import json
import logging
import os import os
import sys import sys
import subprocess import subprocess
@ -41,7 +42,7 @@ import manager_downloader
from node_package import InstalledNodePackage from node_package import InstalledNodePackage
version_code = [3, 14] version_code = [3, 14, 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 '')
@ -2835,15 +2836,18 @@ async def get_unified_total_nodes(channel, mode, regsitry_cache_mode='cache'):
def populate_github_stats(node_packs, json_obj_github): def populate_github_stats(node_packs, json_obj_github):
for k, v in node_packs.items(): for k, v in node_packs.items():
url = v['reference'] try:
if url in json_obj_github: url = v['reference']
v['stars'] = json_obj_github[url]['stars'] if url in json_obj_github:
v['last_update'] = json_obj_github[url]['last_update'] v['stars'] = json_obj_github[url]['stars']
v['trust'] = json_obj_github[url]['author_account_age_days'] > 600 v['last_update'] = json_obj_github[url]['last_update']
else: v['trust'] = json_obj_github[url]['author_account_age_days'] > 600
v['stars'] = -1 else:
v['last_update'] = -1 v['stars'] = -1
v['trust'] = False v['last_update'] = -1
v['trust'] = False
except:
logging.error(f"[ComfyUI-Manager] DB item is broken:\n{v}")
def populate_favorites(node_packs, json_obj_extras): def populate_favorites(node_packs, json_obj_extras):

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.14" version = "3.14.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"] dependencies = ["GitPython", "PyGithub", "matrix-client==0.4.0", "transformers", "huggingface-hub>0.20", "typer", "rich", "typing-extensions"]