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:
@@ -973,7 +973,9 @@ async def ensure_points_quote(
|
|||||||
.limit(1)
|
.limit(1)
|
||||||
)).scalar_one_or_none()
|
)).scalar_one_or_none()
|
||||||
if own is not 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
|
return False
|
||||||
own.ltl = min_points_pct
|
own.ltl = min_points_pct
|
||||||
await db.flush()
|
await db.flush()
|
||||||
|
|||||||
Reference in New Issue
Block a user