fix: the layout lines up its columns and keeps 5 mm margins (layout version 3)
Some checks failed
Build and deploy / Validate source (push) Successful in 5s
Build and deploy / Integration suite on a real stack (push) Failing after 3m59s
Build and deploy / Secret scan and release gate (push) Successful in 6s
Build and deploy / Publish images (push) Has been skipped
Some checks failed
Build and deploy / Validate source (push) Successful in 5s
Build and deploy / Integration suite on a real stack (push) Failing after 3m59s
Build and deploy / Secret scan and release gate (push) Successful in 6s
Build and deploy / Publish images (push) Has been skipped
Dropstar's item 5 (2026-10-21). The engine placed pieces on a 5 mm grid, rounding each up: two 28,2 cm pieces needed 57,5 cm on a 57 cm film, so the second column slid 8 cm down, rows ended 8,6 mm apart and nothing was left at the edges. Order 1 came out 97,14 cm long. - pieces are laid out in rows with their exact sizes: 5 mm at the top, the bottom and between rows; across the width 5 mm at the edges and between pieces, or, when that does not fit, the space left shared out equally, never under 1,5 mm (order 1: 2 mm each, 89,42 cm long) - each artwork stands or lies down, whichever gives the shorter sheet - the shape packing (pieces fitting into each other) is kept only when it saves at least 1 cm; otherwise the columns stay aligned - the order records layout version 3; quotes made with version 2 still pass - the preview says the spacing really used Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -18,6 +18,7 @@ from psycopg.types.json import Jsonb
|
||||
|
||||
from . import machines, mail
|
||||
from .core.auth import audit
|
||||
from .core.models import PRODUCTION_VERSIONS
|
||||
from .printjobs import queue as queue_print_files
|
||||
from .runtime import PUBLIC_ORIGIN, enqueue, upload_row
|
||||
from .scanning import require_clean
|
||||
@@ -39,7 +40,7 @@ def approved_quote(c, quote_id, owner=None):
|
||||
raise PaymentRefused('quote was never reviewed')
|
||||
if row.get('discarded_at'):
|
||||
raise PaymentRefused('quote was discarded')
|
||||
if any(item.get('production', {}).get('version') != 2 for item in row['approved']['items']):
|
||||
if any(item.get('production', {}).get('version') not in PRODUCTION_VERSIONS for item in row['approved']['items']):
|
||||
raise PaymentRefused('quote uses an obsolete production layout; request a new quote')
|
||||
if row['approved_at'] < datetime.now(timezone.utc) - timedelta(hours=QUOTE_VALID_HOURS):
|
||||
raise PaymentRefused('quote expired before payment')
|
||||
|
||||
Reference in New Issue
Block a user