aboutsummaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorCédric Bonhomme <kimble.mandel@gmail.com>2013-09-09 07:11:56 +0200
committerCédric Bonhomme <kimble.mandel@gmail.com>2013-09-09 07:11:56 +0200
commit90a893d43f9e8b05045dc2cc5071841006bc4fac (patch)
treef01029e88135aeba7b373fd7bdcf4529efe041ee /source
parentChange the name of the collection when the url of a feed is changed. (diff)
downloadnewspipe-90a893d43f9e8b05045dc2cc5071841006bc4fac.tar.gz
newspipe-90a893d43f9e8b05045dc2cc5071841006bc4fac.tar.bz2
newspipe-90a893d43f9e8b05045dc2cc5071841006bc4fac.zip
Improved pymongo request
Diffstat (limited to 'source')
-rwxr-xr-xsource/pyAggr3g470r.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/pyAggr3g470r.py b/source/pyAggr3g470r.py
index 007d1e6f..27f5f244 100755
--- a/source/pyAggr3g470r.py
+++ b/source/pyAggr3g470r.py
@@ -540,8 +540,8 @@ class pyAggr3g470r(object):
sha1_hash = hashlib.sha1()
sha1_hash.update(new_feed_url.encode('utf-8'))
new_feed_id = sha1_hash.hexdigest()
- self.mongo.update_feed(feed_id, {"feed_link":new_feed_url})
- self.mongo.update_feed(feed_id, {"feed_id":new_feed_id})
+ self.mongo.update_feed(feed_id, {"feed_id":new_feed_id,
+ "feed_link":new_feed_url})
result = utils.change_feed_url(old_feed_url, new_feed_url)
if result:
tmpl = lookup.get_template("confirmation.html")
bgstack15