aboutsummaryrefslogtreecommitdiff
path: root/pyaggr3g470r/utils.py
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2015-02-25 23:18:55 +0100
committerCédric Bonhomme <cedric@cedricbonhomme.org>2015-02-25 23:18:55 +0100
commitd6b34ceb21951d97fd978e66d03459749d6dea6e (patch)
treebacd9f9028ef07beb75aadeb57a8fb2aae849d7d /pyaggr3g470r/utils.py
parentRelease 6.1. Updated NEWS.rst (diff)
downloadnewspipe-d6b34ceb21951d97fd978e66d03459749d6dea6e.tar.gz
newspipe-d6b34ceb21951d97fd978e66d03459749d6dea6e.tar.bz2
newspipe-d6b34ceb21951d97fd978e66d03459749d6dea6e.zip
Removed the functionality for the email notifications of new articles. No real added value.
Diffstat (limited to 'pyaggr3g470r/utils.py')
-rwxr-xr-xpyaggr3g470r/utils.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/pyaggr3g470r/utils.py b/pyaggr3g470r/utils.py
index c6264106..972909af 100755
--- a/pyaggr3g470r/utils.py
+++ b/pyaggr3g470r/utils.py
@@ -30,8 +30,7 @@ __license__ = "AGPLv3"
# This file provides functions used for:
# - the database management;
# - generation of tags cloud;
-# - HTML processing;
-# - e-mail notifications.
+# - HTML processing.
#
import re
@@ -129,7 +128,7 @@ def import_opml(email, opml_content):
new_feed = Feed(title=title, description=description,
link=link, site_link=site_link,
- email_notification=False, enabled=True)
+ enabled=True)
user.feeds.append(new_feed)
nb += 1
@@ -154,7 +153,7 @@ def import_json(email, json_content):
continue
new_feed = Feed(title=feed["title"], description="", link=feed["link"], \
- site_link=feed["site_link"], email_notification=feed["email_notification"], \
+ site_link=feed["site_link"], \
created_date=datetime.datetime.fromtimestamp(int(feed["created_date"])),
enabled=feed["enabled"])
user.feeds.append(new_feed)
bgstack15