From 39b9ad77eb43b1d4a99ac87e3059e2a5a36c5ff3 Mon Sep 17 00:00:00 2001 From: "Adriano (daitarn)" Date: Sun, 25 Oct 2026 16:31:16 +0100 Subject: [PATCH] vision: condizione della quota su due righe leggibili (Refs #105) Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01Jbf7qKuxsnAVjxthRy7dnB --- src/backend/services/vision_service.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/backend/services/vision_service.py b/src/backend/services/vision_service.py index 95c5661..e2ae9f8 100644 --- a/src/backend/services/vision_service.py +++ b/src/backend/services/vision_service.py @@ -973,7 +973,9 @@ async def ensure_points_quote( .limit(1) )).scalar_one_or_none() if own is not None: - if (own.ltl is not None and float(own.ltl) == float(min_points_pct)) or await recipe_service.version_has_measurements(db, task.version_id): + # soglia invariata o versione con misure: la quota resta com'e' + same = own.ltl is not None and float(own.ltl) == float(min_points_pct) + if same or await recipe_service.version_has_measurements(db, task.version_id): return False own.ltl = min_points_pct await db.flush()