From 32680495dfc7a06783b700a36868d0f565fa286f Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Mon, 31 Oct 2016 14:58:49 +0100 Subject: debug --- src/crawler/classic_crawler.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/crawler/classic_crawler.py b/src/crawler/classic_crawler.py index 9f0bb0d9..3a103697 100644 --- a/src/crawler/classic_crawler.py +++ b/src/crawler/classic_crawler.py @@ -138,10 +138,11 @@ async def insert_database(user, feed): existing_article = existing_article_req.first() new_updated_date = None try: - new_updated_date = dateutil.parser.parse(article['updated_date']) + new_updated_date = dateutil.parser.parse(article['updated']) except Exception as e: new_updated_date = existing_article.date logger.exception("new_updated_date failed: " + str(e)) + print("new_updated_date failed: " + str(e)) if None is existing_article.updated_date: existing_article.updated_date = new_updated_date.replace(tzinfo=None) -- cgit