add certs
This commit is contained in:
@@ -14,7 +14,7 @@ from layercake.dynamodb import DynamoDBPersistenceLayer, KeyPair
|
||||
from boto3clients import dynamodb_client, s3_client
|
||||
from config import BUCKET_NAME, ORDER_TABLE
|
||||
|
||||
WEASYPRINT_API = 'https://weasyprint.saladeaula.digital'
|
||||
PAPERFORGE_API = 'https://weasyprint.saladeaula.digital'
|
||||
TEMPLATE_S3_URI = 's3://saladeaula.digital/billing/template.html'
|
||||
|
||||
logger = Logger(__name__)
|
||||
@@ -50,8 +50,8 @@ def lambda_handler(event: EventBridgeEvent, context: LambdaContext) -> bool:
|
||||
},
|
||||
cls=Encoder,
|
||||
)
|
||||
# Send template URI and data to WeasyPrint API to generate a PDF
|
||||
r = requests.post(WEASYPRINT_API, data=json_data)
|
||||
# Send template URI and data to Paperforge API to generate a PDF
|
||||
r = requests.post(PAPERFORGE_API, data=json_data)
|
||||
r.raise_for_status()
|
||||
|
||||
object_key = f'billing/{org_id}/{start_date}_{end_date}.pdf'
|
||||
|
||||
Reference in New Issue
Block a user