Merge main into sentry
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -47,8 +47,12 @@ def session(request: Request, response: Response):
|
||||
'password_recovery': mail.configured(),
|
||||
# Per metre on a finished sheet someone opens by hand (app/core/pricing.py).
|
||||
'manual_extra_cents': manual_extra_cents(),
|
||||
# Zero keeps the designer's treatment hidden, as an off product does.
|
||||
# Zero keeps Ajuste Fino hidden, as an off product does. Its bands
|
||||
# are counted in arts, not metres.
|
||||
'treatment_cents': treatment['unit_cents'] if treatment['enabled'] else 0,
|
||||
'treatment_bands': [{'from_metres': float(band['from_metres']),
|
||||
'unit_cents': band['unit_cents']}
|
||||
for band in treatment['bands']] if treatment['enabled'] else [],
|
||||
# The grade rules the Site needs for the treatment requirement
|
||||
# (front 8.5): {} when nothing is configured.
|
||||
'grade_rules': rules,
|
||||
|
||||
Reference in New Issue
Block a user