add checkout
This commit is contained in:
@@ -32,7 +32,7 @@ def create_submission_from_pdf(
|
||||
submitters: list[Submitter],
|
||||
email_message: EmailMessage,
|
||||
**kwargs,
|
||||
):
|
||||
) -> dict:
|
||||
r = requests.post(
|
||||
url=f'{DOCUSEAL_API}/api/submissions/pdf',
|
||||
json={
|
||||
@@ -52,4 +52,4 @@ def create_submission_from_pdf(
|
||||
)
|
||||
r.raise_for_status()
|
||||
|
||||
return True
|
||||
return r.json()
|
||||
|
||||
@@ -36,7 +36,7 @@ def lambda_handler(event: EventBridgeEvent, context: LambdaContext) -> bool:
|
||||
file_bytes = _get_file_bytes(new_image['cert']['s3_uri'])
|
||||
file_base64 = base64.b64encode(file_bytes)
|
||||
|
||||
create_submission_from_pdf(
|
||||
r = create_submission_from_pdf(
|
||||
filename=new_image['id'],
|
||||
file=file_base64.decode('utf-8'),
|
||||
email_message={
|
||||
@@ -52,6 +52,7 @@ def lambda_handler(event: EventBridgeEvent, context: LambdaContext) -> bool:
|
||||
},
|
||||
],
|
||||
)
|
||||
logger.debug(r)
|
||||
|
||||
return True
|
||||
|
||||
|
||||
Reference in New Issue
Block a user