vision: condizione della quota su due righe leggibili (Refs #105)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Jbf7qKuxsnAVjxthRy7dnB
This commit is contained in:
2026-10-25 16:31:16 +01:00
parent 12632323e8
commit 39b9ad77eb
+3 -1
View File
@@ -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()