diff --git a/app/tasks/__init__.py b/app/tasks/__init__.py index c3809b5..47759f6 100644 --- a/app/tasks/__init__.py +++ b/app/tasks/__init__.py @@ -99,6 +99,8 @@ def get_article(item, source, reprocess=False): articles.insert(article) except Exception as e: pass + if processed: + print(processed) articles.update({'_id': ObjectId(processed['_id'])}, {'$set': article}) monitor = get_monitor_obj(article['feed_source']) return {'article': article, 'monitor': monitor, 'from_store': False}