fix: align proof, treatment, metrics and site videos with PDF
All checks were successful
Build and deploy / Validate source (push) Successful in 11s
Build and deploy / Integration suite on a real stack (push) Successful in 5m44s
Build and deploy / Secret scan and release gate (push) Successful in 6s
Build and deploy / Publish images (push) Successful in 1m22s
All checks were successful
Build and deploy / Validate source (push) Successful in 11s
Build and deploy / Integration suite on a real stack (push) Successful in 5m44s
Build and deploy / Secret scan and release gate (push) Successful in 6s
Build and deploy / Publish images (push) Successful in 1m22s
This commit is contained in:
@@ -26,7 +26,8 @@ def begin_final(oid: UUID, body: UploadStart, user=Depends(can('produce'))):
|
||||
if not row: raise HTTPException(404, 'Order not found')
|
||||
if row['parent_id']:
|
||||
raise HTTPException(409, 'A prova recebe o PNG final automaticamente.')
|
||||
proof.require_unlocked(c, row)
|
||||
if not proof.manual_source_needed(c, row):
|
||||
proof.require_unlocked(c, row)
|
||||
if row['state'] not in ('rec','cor'): raise HTTPException(409, 'Order is not in artwork review')
|
||||
return begin_upload(body, session_id=operator_identity(user))
|
||||
|
||||
@@ -60,5 +61,6 @@ def final_files(oid: UUID, body: ArtworkSubmission, user=Depends(can('produce'))
|
||||
if not order: raise HTTPException(404, 'Order not found')
|
||||
if order['parent_id']:
|
||||
raise HTTPException(409, 'O arquivo final da prova é gerado automaticamente. Use Gerar de novo se falhar.')
|
||||
proof.require_unlocked(c, order)
|
||||
if not proof.manual_source_needed(c, order):
|
||||
proof.require_unlocked(c, order)
|
||||
return submit_files(c,order,body,operator_identity(user),'final',user)
|
||||
|
||||
Reference in New Issue
Block a user