mirror of
https://github.com/simple-login/app.git
synced 2024-11-10 17:35:27 +08:00
Reformat with Black
This commit is contained in:
parent
d8ed1cbbc3
commit
7be674c13b
1 changed files with 5 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue