From 461bd6bbcc4275f41b27d92fae54295cf8be73b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cau=C3=AA=20Faleiros?= Date: Thu, 12 Nov 2026 11:09:49 -0300 Subject: [PATCH] refactor: the Redesenho line reads its SKU through the shared setting constants Co-Authored-By: Claude Opus 5.5 (1M context) --- app/tiny.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/tiny.py b/app/tiny.py index aa38aff..a63006e 100644 --- a/app/tiny.py +++ b/app/tiny.py @@ -573,7 +573,7 @@ def order_payload(payload, contact_id, today=None, product_id=None, shipping=Non # one price (never a band), 48 h. Empty setting means the default code. if product_id is None: raise TinyError('TINY_SKU_REDESIGN needs the SKU looked up in Tiny') - code = os.environ.get('TINY_SKU_REDESIGN', '').strip() or 'DTFIMP.AJF.RED' + code = setting(REDESIGN_SKU_SETTING) or REDESIGN_SKU_DEFAULT arts = int(redesign.get('arts') or 1) unit = int(redesign.get('unit_cents') or redesign['cents']) items.append({'produto': {'id': product_id(code)}, 'quantidade': arts,