aboutsummaryrefslogtreecommitdiff
path: root/pyaggr3g470r/crawler.py
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2015-02-19 18:23:09 +0100
committerCédric Bonhomme <cedric@cedricbonhomme.org>2015-02-19 18:23:09 +0100
commitf9efa9c19d4003e15c4cbe992999f0a1de45428d (patch)
treef05f2fd4a56182fa51670cb82705fa05dbe7fb50 /pyaggr3g470r/crawler.py
parentTypo. (diff)
downloadnewspipe-f9efa9c19d4003e15c4cbe992999f0a1de45428d.tar.gz
newspipe-f9efa9c19d4003e15c4cbe992999f0a1de45428d.tar.bz2
newspipe-f9efa9c19d4003e15c4cbe992999f0a1de45428d.zip
It is now unseless to test the value of article.date at this point.
Diffstat (limited to 'pyaggr3g470r/crawler.py')
-rw-r--r--pyaggr3g470r/crawler.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/pyaggr3g470r/crawler.py b/pyaggr3g470r/crawler.py
index 1cfe5827..3309f4ab 100644
--- a/pyaggr3g470r/crawler.py
+++ b/pyaggr3g470r/crawler.py
@@ -181,8 +181,6 @@ def insert_database(user, feed):
if exist:
#logger.debug("Article %r (%r) already in the database.", article.title, article.link)
continue
- if article.date is None:
- article.date = datetime.now(dateutil.tz.tzlocal())
new_articles.append(article)
try:
feed.articles.append(article)
bgstack15