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()