From f9efa9c19d4003e15c4cbe992999f0a1de45428d Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Thu, 19 Feb 2015 18:23:09 +0100 Subject: It is now unseless to test the value of article.date at this point. --- pyaggr3g470r/crawler.py | 2 -- 1 file changed, 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) -- cgit