finish
This commit is contained in:
@@ -14,6 +14,8 @@ 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'
|
||||
|
||||
logger = Logger(__name__)
|
||||
order_layer = DynamoDBPersistenceLayer(ORDER_TABLE, dynamodb_client)
|
||||
|
||||
@@ -37,7 +39,7 @@ def lambda_handler(event: EventBridgeEvent, context: LambdaContext) -> bool:
|
||||
)
|
||||
|
||||
r = requests.post(
|
||||
'https://weasyprint.saladeaula.digital',
|
||||
WEASYPRINT_API,
|
||||
data=json.dumps(
|
||||
{
|
||||
'template_s3_uri': 's3://saladeaula.digital/billing/template.html',
|
||||
|
||||
Reference in New Issue
Block a user