aboutsummaryrefslogtreecommitdiff
path: root/utils.py
diff options
context:
space:
mode:
authorcedricbonhomme <devnull@localhost>2011-06-13 15:12:58 +0200
committercedricbonhomme <devnull@localhost>2011-06-13 15:12:58 +0200
commitf5603a7de6e263216a8ae57972f353b40cced89f (patch)
treed01f63c94755e8d992d49fe52aa08de0c5f5c262 /utils.py
parentAdded support of different POD for diaspora. (diff)
downloadnewspipe-f5603a7de6e263216a8ae57972f353b40cced89f.tar.gz
newspipe-f5603a7de6e263216a8ae57972f353b40cced89f.tar.bz2
newspipe-f5603a7de6e263216a8ae57972f353b40cced89f.zip
Minor bugfix: articles must be sorted before the selection of article to load.
Diffstat (limited to 'utils.py')
-rwxr-xr-xutils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils.py b/utils.py
index 506f1de9..29ca43d3 100755
--- a/utils.py
+++ b/utils.py
@@ -373,9 +373,9 @@ def load_feed():
feed_object.mail = feed[4]
if list_of_articles != []:
+ list_of_articles.sort(lambda x,y: compare(y[0], x[0]))
if MAX_NB_ARTICLES != -1:
list_of_articles = list_of_articles[:MAX_NB_ARTICLES]
- list_of_articles.sort(lambda x,y: compare(y[0], x[0]))
# Walk through the list of articles for the current feed.
for article in list_of_articles:
sha1_hash.update(article[2].encode('utf-8'))
bgstack15