diff options
| author | Guillaume Horel <guillaume.horel@gmail.com> | 2017-07-23 17:45:49 -0400 |
|---|---|---|
| committer | Guillaume Horel <guillaume.horel@gmail.com> | 2017-07-23 17:45:49 -0400 |
| commit | 3878714b2f2ef4c9b78b0dc8071ff594696b072d (patch) | |
| tree | a6c869c106cd64512498ddc811ac3542165d33f4 /famille.py | |
| parent | 663805dee05636c6df2303d1917c568ab6d58cfd (diff) | |
| download | famille-flask-3878714b2f2ef4c9b78b0dc8071ff594696b072d.tar.gz | |
fix import
Diffstat (limited to 'famille.py')
| -rw-r--r-- | famille.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -13,7 +13,7 @@ from email import utils from bs4 import BeautifulSoup import locale from smartypants import smartypants, Attr -from email_helpers import GmailEmailMessage +from email_helpers import GmailMessage locale.setlocale(locale.LC_ALL, 'fr_FR.UTF-8') @@ -150,7 +150,7 @@ def add_news(): emails = query_db("SELECT email from users where notify=1") emails = [email["email"] for email in emails if email["email"]] if emails: - message = GmailEmailMessage() + message = GmailMessage() message['to'] = emails message['subject'] = request.form['title'] message['reply-to'] = "news.horel+{}@gmail.com".format(news_id) |
