diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2014-04-27 11:17:18 +0200 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2014-04-27 11:17:18 +0200 |
commit | 5c827c1e3dca07408bb6dd0394605ca826431107 (patch) | |
tree | d07bbfd58ca643e2eee4815ff824e94ca32de0f9 /pyaggr3g470r/decorators.py | |
parent | Improved code readability. (diff) | |
download | newspipe-5c827c1e3dca07408bb6dd0394605ca826431107.tar.gz newspipe-5c827c1e3dca07408bb6dd0394605ca826431107.tar.bz2 newspipe-5c827c1e3dca07408bb6dd0394605ca826431107.zip |
Better to send email without Flask-Mail.
Diffstat (limited to 'pyaggr3g470r/decorators.py')
-rw-r--r-- | pyaggr3g470r/decorators.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pyaggr3g470r/decorators.py b/pyaggr3g470r/decorators.py index 0052dc80..80568add 100644 --- a/pyaggr3g470r/decorators.py +++ b/pyaggr3g470r/decorators.py @@ -10,6 +10,10 @@ from pyaggr3g470r.models import Feed def async(f): + """ + This decorator enables to send email in a new thread. + This prevent the server to freeze. + """ def wrapper(*args, **kwargs): thr = Thread(target=f, args=args, kwargs=kwargs) thr.start() |