Skip to content

Commit 3c0a171

Browse files
Remover código de teste do lambda_handler para simplificar a função e evitar confusões durante a execução.
1 parent 3351787 commit 3c0a171

1 file changed

Lines changed: 0 additions & 46 deletions

File tree

lambda_function.py

Lines changed: 0 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -180,49 +180,3 @@ def lambda_handler(event, context):
180180
'message': 'Erro ao gerar certificados'
181181
})
182182
}
183-
184-
if __name__ == "__main__":
185-
lambda_handler({
186-
"Records": [
187-
{
188-
"body": [
189-
{
190-
"order_id": 452,
191-
"first_name": "Jardel",
192-
"last_name": "Godinho",
193-
"email": "jardelgodinho@gmail.com",
194-
"phone": "(48) 98866-7447",
195-
"cpf": "",
196-
"city": "São José",
197-
"product_id": 316,
198-
"product_name": "Evento de Teste",
199-
"certificate_details": "In recognition of their participation in the 84st edition of the Python Floripa Community Meeting, held on March 29, 2025, in Florianópolis, Brazil.",
200-
"certificate_logo": "https://tech.floripa.br/wp-content/uploads/2025/03/84o-Python-Floripa-e1741729144453.png",
201-
"certificate_background": "https://tech.floripa.br/wp-content/uploads/2025/03/Background.png",
202-
"order_date": "2025-03-26 20:55:25",
203-
"checkin_latitude": "-27.5460492",
204-
"checkin_longitude": "-48.6227075",
205-
"time_checkin": "2025-03-26 20:55:44"
206-
},
207-
{
208-
"order_id": 317,
209-
"first_name": "Jardel",
210-
"last_name": "Godinho",
211-
"email": "jardel.godinho@gmail.com",
212-
"phone": "(48) 98866-7447",
213-
"cpf": "",
214-
"city": "",
215-
"product_id": 316,
216-
"product_name": "Evento de Teste",
217-
"certificate_details": "In recognition of their participation in the 84st edition of the Python Floripa Community Meeting, held on March 29, 2025, in Florianópolis, Brazil.",
218-
"certificate_logo": "https://tech.floripa.br/wp-content/uploads/2025/03/84o-Python-Floripa-e1741729144453.png",
219-
"certificate_background": "https://tech.floripa.br/wp-content/uploads/2025/03/Background.png",
220-
"order_date": "2025-03-19 06:04:51",
221-
"checkin_latitude": "-27.5460492",
222-
"checkin_longitude": "-48.6227075",
223-
"time_checkin": "2025-03-19 16:04:16"
224-
}
225-
]
226-
}
227-
]
228-
}, {})

0 commit comments

Comments
 (0)