fix: review of phase-2 stage 0 and fronts 5, 6 and 11
All checks were successful
Build and deploy / Publish images (push) Successful in 1m5s
Build and deploy / Validate source (push) Successful in 5s
Build and deploy / Integration suite on a real stack (push) Successful in 5m7s
Build and deploy / Secret scan and release gate (push) Successful in 6s
All checks were successful
Build and deploy / Publish images (push) Successful in 1m5s
Build and deploy / Validate source (push) Successful in 5s
Build and deploy / Integration suite on a real stack (push) Successful in 5m7s
Build and deploy / Secret scan and release gate (push) Successful in 6s
- A paid treatment adds its 24 h to Arte recebida's acceptable time, on the card and in Números (fronts 5 and 11). - TINY_PRODUCT_TREATMENT is a required Tiny setting once the treatment has a price, instead of every treated order failing at the Tiny. - A quote reads each PDF once: Files caches the header and the DPI. - A proof made from the parent's final split into parts uses the part that holds the finest stroke, not the last one (0.1). - Prumo report: one format line per item, the time from the claim (kept on the finished print file), and the stroke class in customer words. - The Site says the Prumo checks the art, and a too-tall PNG no longer says "Este PDF". Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -51,6 +51,8 @@ from urllib.parse import urlencode
|
||||
|
||||
import httpx
|
||||
|
||||
from .core.pricing import treatment_cents
|
||||
|
||||
API = 'https://api.tiny.com.br/public-api/v3'
|
||||
AUTH = 'https://accounts.tiny.com.br/realms/tiny/protocol/openid-connect'
|
||||
# Not TINY_PRODUCT_<MODE>: app/core/secrets.py reads any variable ending in
|
||||
@@ -166,8 +168,13 @@ def configured():
|
||||
|
||||
def required_settings():
|
||||
"""The OAuth application, and a product id for each mode not sold by SKU."""
|
||||
return ['TINY_CLIENT_ID', 'TINY_CLIENT_SECRET', 'TINY_REDIRECT_URI'] + [
|
||||
required = ['TINY_CLIENT_ID', 'TINY_CLIENT_SECRET', 'TINY_REDIRECT_URI'] + [
|
||||
setting for mode, setting in PRODUCT_SETTINGS.items() if not (sku_prefix(mode) or step_sku(mode))]
|
||||
# A paid treatment is a line of its own: missing, every treated order would
|
||||
# fail at the Tiny, so ask for it with the rest of the settings.
|
||||
if treatment_cents() > 0:
|
||||
required.append('TINY_PRODUCT_TREATMENT')
|
||||
return required
|
||||
|
||||
|
||||
# The stack passes every setting, empty when unset, so empty means "the
|
||||
|
||||
Reference in New Issue
Block a user