From 7be674c13bc830f6ab3c21eb83f5cdb2cda200df Mon Sep 17 00:00:00 2001 From: Sylvia van Os Date: Thu, 1 Oct 2020 21:44:44 +0200 Subject: [PATCH] Reformat with Black --- app/models.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/models.py b/app/models.py index 779663ea..7e60bb19 100644 --- a/app/models.py +++ b/app/models.py @@ -1190,7 +1190,11 @@ class Contact(db.Model, ModelMixin): formatted_email = self.website_email.strip() # Prefix name to formatted email if available - new_name = (self.name + " - " + formatted_email) if self.name and self.name != self.website_email.strip() else formatted_email + new_name = ( + (self.name + " - " + formatted_email) + if self.name and self.name != self.website_email.strip() + else formatted_email + ) new_addr = formataddr((new_name, self.reply_email)).strip() return new_addr.strip()