From a65c104a0b9dba710843f1c1191b45254cac5c11 Mon Sep 17 00:00:00 2001 From: mike cullerton Date: Tue, 26 Oct 2021 15:27:24 -0400 Subject: [PATCH] To validate get_email_data --- crc/scripts/email.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crc/scripts/email.py b/crc/scripts/email.py index 5c35b46b..46e1f2e1 100644 --- a/crc/scripts/email.py +++ b/crc/scripts/email.py @@ -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):