We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents afb03df + b9f5b59 commit f2c348aCopy full SHA for f2c348a
1 file changed
lambda_function.py
@@ -28,8 +28,8 @@ class DateTimeEncoder(json.JSONEncoder):
28
def default(self, obj):
29
if isinstance(obj, datetime):
30
return obj.strftime('%Y-%m-%d %H:%M:%S')
31
- if hasattr(obj, 'dict'):
32
- return obj.dict()
+ if hasattr(obj, 'model_dump'):
+ return obj.model_dump()
33
return super().default(obj)
34
35
def extract_data_body(event):
@@ -106,7 +106,7 @@ def lambda_handler(event, context):
106
})
107
}
108
109
- logger.info("Iniciando geração de certificados")
+ logger.info(f"Processing {len(participants_data)} participants")
110
111
# Create list of participants
112
participants = []
0 commit comments