aboutsummaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorCédric Bonhomme <kimble.mandel@gmail.com>2013-08-19 13:44:35 +0200
committerCédric Bonhomme <kimble.mandel@gmail.com>2013-08-19 13:44:35 +0200
commitdb34984df771fd395ee2e873c24bc118a4b1c002 (patch)
tree10be8e3ae1c7494bad17dc50adff8d7730239e23 /source
parentUpdated index.html template. (diff)
downloadnewspipe-db34984df771fd395ee2e873c24bc118a4b1c002.tar.gz
newspipe-db34984df771fd395ee2e873c24bc118a4b1c002.tar.bz2
newspipe-db34984df771fd395ee2e873c24bc118a4b1c002.zip
Bugfix: there was a problem when enabling email notifications for a feed.
Diffstat (limited to 'source')
-rwxr-xr-xsource/pyAggr3g470r.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/pyAggr3g470r.py b/source/pyAggr3g470r.py
index 3de1dfa6..956402ce 100755
--- a/source/pyAggr3g470r.py
+++ b/source/pyAggr3g470r.py
@@ -384,6 +384,8 @@ class pyAggr3g470r(object):
"""
try:
action, feed_id = param.split(':')
+ new_value = 1 == int(action)
+ self.mongo.update_feed(feed_id, {"mail":new_value})
except:
return self.error("<p>Bad URL. This feed do not exists.</p>")
return self.index()
bgstack15