To validate get_email_data
This commit is contained in:
parent
f88aba1db0
commit
a65c104a0b
|
@ -45,7 +45,7 @@ email(subject="My Subject", recipients="user@example.com", attachments=['Study_A
|
|||
recipients = self.get_email_addresses(kwargs['recipients'], study_id)
|
||||
content, content_html = EmailService().get_rendered_content(task.task_spec.documentation, task.data)
|
||||
|
||||
email_model = EmailModel(subject=subject, recipients=recipients, content=content, content_html=content_html, timestamp=datetime.datetime.utcnow())
|
||||
email_model = EmailModel(id=1, subject=subject, recipients=recipients, content=content, content_html=content_html, timestamp=datetime.datetime.utcnow())
|
||||
return EmailModelSchema().dump(email_model)
|
||||
|
||||
def do_task(self, task, study_id, workflow_id, *args, **kwargs):
|
||||
|
|
Loading…
Reference in New Issue