mirror of
https://github.com/Comfy-Org/ComfyUI-Manager.git
synced 2026-04-10 02:12:35 +08:00
Merge 95e73a6275 into 3615af1560
This commit is contained in:
commit
dc87ee0358
@ -874,14 +874,16 @@ async def fetch_customnode_list(request):
|
|||||||
else:
|
else:
|
||||||
skip_update = False
|
skip_update = False
|
||||||
|
|
||||||
if request.rel_url.query["mode"] == "local":
|
mode = request.rel_url.query.get("mode", "cache")
|
||||||
|
|
||||||
|
if mode == "local":
|
||||||
channel = 'local'
|
channel = 'local'
|
||||||
else:
|
else:
|
||||||
channel = core.get_config()['channel_url']
|
channel = core.get_config()['channel_url']
|
||||||
|
|
||||||
node_packs = await core.get_unified_total_nodes(channel, request.rel_url.query["mode"], 'cache')
|
node_packs = await core.get_unified_total_nodes(channel, mode, 'cache')
|
||||||
json_obj_github = core.get_data_by_mode(request.rel_url.query["mode"], 'github-stats.json', 'default')
|
json_obj_github = core.get_data_by_mode(mode, 'github-stats.json', 'default')
|
||||||
json_obj_extras = core.get_data_by_mode(request.rel_url.query["mode"], 'extras.json', 'default')
|
json_obj_extras = core.get_data_by_mode(mode, 'extras.json', 'default')
|
||||||
|
|
||||||
core.populate_github_stats(node_packs, await json_obj_github)
|
core.populate_github_stats(node_packs, await json_obj_github)
|
||||||
core.populate_favorites(node_packs, await json_obj_extras)
|
core.populate_favorites(node_packs, await json_obj_extras)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user