From 4a6042d0b4d07b6c2ab34f3896f75d5ceff17837 Mon Sep 17 00:00:00 2001 From: hein <117531390+1756141021@users.noreply.github.com> Date: Tue, 18 Aug 2026 15:10:53 +0800 Subject: [PATCH] fix: include locally available LoRAs in recipe syntax even if deleted from Civitai (#948) get_recipe_syntax_tokens() previously skipped all LoRAs with isDeleted=True unconditionally. Now it tries to resolve the file locally first (via hash index or modelVersionId); only skips if the LoRA is truly unavailable. This is a companion fix to #946 (AutoV2 hash matching). Co-authored-by: Claude Opus 4.6 --- py/services/recipe_scanner.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/py/services/recipe_scanner.py b/py/services/recipe_scanner.py index 80a0771a..b52f4b28 100644 --- a/py/services/recipe_scanner.py +++ b/py/services/recipe_scanner.py @@ -3590,9 +3590,6 @@ class RecipeScanner: syntax_parts: List[str] = [] for lora in loras: - if lora.get("isDeleted", False): - continue - file_name = None folder = "" hash_value = (lora.get("hash") or "").lower() @@ -3627,6 +3624,8 @@ class RecipeScanner: break if not file_name: + if lora.get("isDeleted", False): + continue file_name = lora.get("file_name", "unknown-lora") folder = lora.get("folder", "")