diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2016-10-31 14:58:49 +0100 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2016-10-31 14:58:49 +0100 |
commit | 32680495dfc7a06783b700a36868d0f565fa286f (patch) | |
tree | 0829d46ce45341bd2b89467eb380f8003e6fb8fd | |
parent | strange problem here (diff) | |
download | newspipe-32680495dfc7a06783b700a36868d0f565fa286f.tar.gz newspipe-32680495dfc7a06783b700a36868d0f565fa286f.tar.bz2 newspipe-32680495dfc7a06783b700a36868d0f565fa286f.zip |
debug
-rw-r--r-- | src/crawler/classic_crawler.py | 3 |
1 files changed, 2 insertions, 1 deletions
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) |