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."
},
{
"title": "A2V Multi Image Composite",
"author": "AiartvnTeam",
"title": "A2V Multi Image Composite",
"id": "Aiartvn",
"description": "Node for compositing multiple images with interactive preview and layer management",
"repository": "https://github.com/aiartvn/A2V_Multi_Image_Composite",
"install_type": "git-clone",
"reference": "https://github.com/aiartvn/A2V_Multi_Image_Composite",
"files": [
"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"]
},

View File

@ -4,6 +4,7 @@ description:
"""
import json
import logging
import os
import sys
import subprocess
@ -41,7 +42,7 @@ import manager_downloader
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 '')
@ -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):
for k, v in node_packs.items():
url = v['reference']
if url in json_obj_github:
v['stars'] = json_obj_github[url]['stars']
v['last_update'] = json_obj_github[url]['last_update']
v['trust'] = json_obj_github[url]['author_account_age_days'] > 600
else:
v['stars'] = -1
v['last_update'] = -1
v['trust'] = False
try:
url = v['reference']
if url in json_obj_github:
v['stars'] = json_obj_github[url]['stars']
v['last_update'] = json_obj_github[url]['last_update']
v['trust'] = json_obj_github[url]['author_account_age_days'] > 600
else:
v['stars'] = -1
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):

View File

@ -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.14"
version = "3.14.1"
license = { file = "LICENSE.txt" }
dependencies = ["GitPython", "PyGithub", "matrix-client==0.4.0", "transformers", "huggingface-hub>0.20", "typer", "rich", "typing-extensions"]