From b604e227d6d61006066fddc18d0c123721a5f266 Mon Sep 17 00:00:00 2001 From: eduar Date: Mon, 2 Feb 2026 08:43:29 +0100 Subject: [PATCH] fix import csv vision --- src/lib/helpers/recipe_manager.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/lib/helpers/recipe_manager.py b/src/lib/helpers/recipe_manager.py index 37f7c47..09eba8f 100644 --- a/src/lib/helpers/recipe_manager.py +++ b/src/lib/helpers/recipe_manager.py @@ -294,8 +294,7 @@ def import_recipes(config, csv_path=None, defaults=None, unsupported_steps=None, unsupported_steps or []), "instruction_extra": (str(row.get("istruzione_abilitata_extra", defaults["istruzione_abilitata_extra"])) or "").strip().lower() == "x" and "instruction_extra" not in (unsupported_steps or []), "pipe_cutter": len(row.get("tagliatubi", defaults["tagliatubi"])) and "pipe_cutter" not in (unsupported_steps or []), - "vision": len( - row.get("test_visione_abilitato", defaults["test_visione_abilitato"])) and "vision" not in ( + "vision": str(row.get("test_visione_abilitato", defaults["test_visione_abilitato"])).strip().lower() in {"si", "s", "x", "yes", "y", "true", "1"} and "vision" not in ( unsupported_steps or []), "test_freefall_leak": len( row.get("prova_tenuta_abilitata", defaults["prova_tenuta_abilitata"])) and "test_freefall_leak" not in (