aboutsummaryrefslogtreecommitdiff
path: root/source/pyAggr3g470r.py
diff options
context:
space:
mode:
Diffstat (limited to 'source/pyAggr3g470r.py')
-rwxr-xr-xsource/pyAggr3g470r.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/pyAggr3g470r.py b/source/pyAggr3g470r.py
index bec7a9fe..007d1e6f 100755
--- a/source/pyAggr3g470r.py
+++ b/source/pyAggr3g470r.py
@@ -536,7 +536,12 @@ class pyAggr3g470r(object):
"""
Enables to change the URL of a feed already present in the database.
"""
+ import hashlib
+ 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})
result = utils.change_feed_url(old_feed_url, new_feed_url)
if result:
tmpl = lookup.get_template("confirmation.html")
bgstack15