From f8996e9871afb1557d8b08f33fa7031baa049746 Mon Sep 17 00:00:00 2001 From: cedricbonhomme Date: Sat, 6 Mar 2010 18:54:32 +0100 Subject: Remplaced sha256 by sha1. --- utils.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'utils.py') diff --git a/utils.py b/utils.py index c6bbcb0c..012f8bfc 100644 --- a/utils.py +++ b/utils.py @@ -154,11 +154,11 @@ def load_feed(): if list_of_articles is not None: for article in list_of_articles: - sha256_hash = hashlib.sha256() - sha256_hash.update(article[5].encode('utf-8')) - feed_id = sha256_hash.hexdigest() - sha256_hash.update(article[2].encode('utf-8')) - article_id = sha256_hash.hexdigest() + sha1_hash = hashlib.sha1() + sha1_hash.update(article[5].encode('utf-8')) + feed_id = sha1_hash.hexdigest() + sha1_hash.update(article[2].encode('utf-8')) + article_id = sha1_hash.hexdigest() if article[3] != "": language = detect_language(remove_html_tags(article[3][:80]).encode('utf-8') + \ -- cgit