diff options
author | Cédric Bonhomme <kimble.mandel@gmail.com> | 2013-01-22 10:59:11 +0100 |
---|---|---|
committer | Cédric Bonhomme <kimble.mandel@gmail.com> | 2013-01-22 10:59:11 +0100 |
commit | ce44be1d55a7bdc4ef127f94e99bebcafbf640a0 (patch) | |
tree | fab9ec7652c1296c5d2b3b700b050cb4ae0ecca1 /source/pyAggr3g470r.py | |
parent | The /feed page now indicates if e-mail notification is activated in the pyAgg... (diff) | |
download | newspipe-ce44be1d55a7bdc4ef127f94e99bebcafbf640a0.tar.gz newspipe-ce44be1d55a7bdc4ef127f94e99bebcafbf640a0.tar.bz2 newspipe-ce44be1d55a7bdc4ef127f94e99bebcafbf640a0.zip |
Improvement in the /feed view.
Diffstat (limited to 'source/pyAggr3g470r.py')
-rwxr-xr-x | source/pyAggr3g470r.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/source/pyAggr3g470r.py b/source/pyAggr3g470r.py index 6f991e51..fc463367 100755 --- a/source/pyAggr3g470r.py +++ b/source/pyAggr3g470r.py @@ -269,8 +269,6 @@ class pyAggr3g470r(object): except KeyError: return self.error("<p>This feed do not exists.</p>") - mail_notification_enabled = conf.MAIL_ENABLED - if articles != []: today = datetime.datetime.now() last_article = articles[0]["article_date"] @@ -287,7 +285,8 @@ class pyAggr3g470r(object): nb_articles_feed=nb_articles_feed, nb_articles_total=nb_articles_total, nb_unread_articles_feed=nb_unread_articles_feed, \ nb_favorites = nb_favorites, first_post_date=first_article, end_post_date=last_article, \ average=average, delta=delta, elapsed=elapsed, \ - tag_cloud=tag_cloud, word_size=word_size, mail_to=conf.mail_to, mail_notification_enabled=mail_notification_enabled) + tag_cloud=tag_cloud, word_size=word_size, \ + mail_to=conf.mail_to, mail_notification_enabled=conf.MAIL_ENABLED) feed.exposed = True |