feat: Números measures the site and the Prumo (0.12)
The browser records page load, upload speed and bytes, Prumo's check and the loose-art montage; the quote keeps them and Números shows average and p95 per period. Print generation and the payment-to-card time come from the database. The upload bar already estimates its remaining time.
This commit is contained in:
@@ -99,6 +99,8 @@ def approve(c, row, items, reviewer):
|
||||
'destination': draft.get('destination'),
|
||||
# The customer's proof only above 10 m (Dropstar, 2026-10-28).
|
||||
**({'proof': True} if draft.get('proof') and metres > PROOF_ABOVE_METRES else {}),
|
||||
# Browser timings are kept for Números, never for the price (0.12).
|
||||
**({'timings': draft['timings']} if draft.get('timings') else {}),
|
||||
'total_cents': sum(i['total_cents'] for i in priced) + quoted_freight['total_cents']}
|
||||
c.execute('UPDATE dtf_local.quotes SET approved=%s, reviewed_by=%s, approved_at=now() WHERE id=%s',
|
||||
(Jsonb(approved), reviewer, row['id']))
|
||||
|
||||
Reference in New Issue
Block a user