SciPost Code Repository

Skip to content
Snippets Groups Projects
Commit 4b21e96e authored by George Katsikas's avatar George Katsikas :goat:
Browse files

flatten email field if only a single email exists

parent 989c65ac
No related branches found
No related tags found
No related merge requests found
...@@ -270,6 +270,9 @@ class MailEngine: ...@@ -270,6 +270,9 @@ class MailEngine:
"No valid email addresses found for %s." % email_key "No valid email addresses found for %s." % email_key
) )
if len(emails) == 1 and len(valid_emails) == 1:
valid_emails = valid_emails[0]
self.mail_data[email_key] = valid_emails self.mail_data[email_key] = valid_emails
def _validate_email_addresses(self, entry): def _validate_email_addresses(self, entry):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment