Stelle den Frontend-MVP und die v0.3-API auf develop bereit, damit Dev API und PWA zusammen deployen.
Deploy Development / deploy (push) Successful in 1m19s
Test Suite / pytest-backend (push) Successful in 31s
Test Suite / smoke-dev (push) Successful in 0s
Test Suite / frontend-checks (push) Successful in 28s

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
LarsandCursor committed 2026-10-04 13:04:59 +02:00
1 parent 827e6a2a11
commit b276758ee1
152 files changed
+25846 -34

No files matched your search

+21
View File
@@ -0,0 +1,21 @@
from decimal import ROUND_HALF_UP, Decimal
HUNDRED = Decimal("100")
ZERO = Decimal("0")
TWO_PLACES = Decimal("0.01")
def clamp(value: Decimal) -> Decimal:
return min(HUNDRED, max(ZERO, value))
def round_score(value: Decimal) -> Decimal:
return value.quantize(TWO_PLACES, rounding=ROUND_HALF_UP)
def as_decimal(value: object) -> Decimal:
if isinstance(value, Decimal):
return value
if isinstance(value, bool) or value is None:
raise TypeError("value is not numeric")
return Decimal(str(value))