aboutsummaryrefslogtreecommitdiff
path: root/pyaggr3g470r/feedgetter.py
diff options
context:
space:
mode:
Diffstat (limited to 'pyaggr3g470r/feedgetter.py')
-rw-r--r--pyaggr3g470r/feedgetter.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/pyaggr3g470r/feedgetter.py b/pyaggr3g470r/feedgetter.py
index 491d110c..be942a2c 100644
--- a/pyaggr3g470r/feedgetter.py
+++ b/pyaggr3g470r/feedgetter.py
@@ -102,6 +102,7 @@ class FeedGetter(object):
exist = models.Article.objects(link=article.link).first()
if exist != None:
+ print "Already in database"
continue
description = ""
@@ -148,7 +149,7 @@ class FeedGetter(object):
article_title, description)).start()
"""
feed.articles.extend(articles)
- feed.articles = sorted(feed.articles, key=lambda t: t.date, reverse=True)
+ feed.articles = sorted(feed.articles, key=lambda t: t.date, reverse=False)
feed.save()
bgstack15