From 81599b8f439bb773579e6ff913458b887dfb0ace Mon Sep 17 00:00:00 2001 From: Will Miao <13051207myq@gmail.com> Date: Fri, 14 Mar 2025 11:22:21 +0800 Subject: [PATCH 1/2] Fix: correct LoRA naming issue when fetching data from Civitai --- py/routes/api_routes.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/py/routes/api_routes.py b/py/routes/api_routes.py index de147e78..07d3471a 100644 --- a/py/routes/api_routes.py +++ b/py/routes/api_routes.py @@ -354,7 +354,7 @@ class ApiRoutes: # Update model name if available if 'model' in civitai_metadata: if civitai_metadata.get('model', {}).get('name'): - local_metadata['model_name'] = determine_base_model(civitai_metadata['model']['name']) + local_metadata['model_name'] = civitai_metadata['model']['name'] # Fetch additional model metadata (description and tags) if we have model ID model_id = civitai_metadata['modelId'] @@ -365,7 +365,7 @@ class ApiRoutes: local_metadata['tags'] = model_metadata.get('tags', []) # Update base model - local_metadata['base_model'] = civitai_metadata.get('baseModel') + local_metadata['base_model'] = determine_base_model(civitai_metadata.get('baseModel')) # Update preview if needed if not local_metadata.get('preview_url') or not os.path.exists(local_metadata['preview_url']): From f7c946778d4686d6cc8add1f70c694c295698860 Mon Sep 17 00:00:00 2001 From: Will Miao <13051207myq@gmail.com> Date: Fri, 14 Mar 2025 11:23:07 +0800 Subject: [PATCH 2/2] Bump version to 0.7.38. fix: correct LoRA naming issue when fetching data from Civitai --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index e188938e..743dfd97 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ [project] name = "comfyui-lora-manager" description = "LoRA Manager for ComfyUI - Access it at http://localhost:8188/loras for managing LoRA models with previews and metadata integration." -version = "0.7.37-bugfix" +version = "0.7.38" license = {file = "LICENSE"} dependencies = [ "aiohttp",