From 208fc48fdea7eb17270fd2a706513259043097a1 Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Thu, 23 May 2019 08:09:15 +0200 Subject: Rmoved list of created articles. --- src/crawler/default_crawler.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/crawler/default_crawler.py b/src/crawler/default_crawler.py index 3a0f72b1..543724bc 100644 --- a/src/crawler/default_crawler.py +++ b/src/crawler/default_crawler.py @@ -136,7 +136,6 @@ async def insert_articles(queue, nḅ_producers=1): logger.info('Inserting articles for {}'.format(feed.title)) - new_articles = [] art_contr = ArticleController(user.id) for article in articles: new_article = await construct_article(article, feed) @@ -153,7 +152,7 @@ async def insert_articles(queue, nḅ_producers=1): # insertion of the new article try: - new_articles.append(art_contr.create(**new_article)) + art_contr.create(**new_article) logger.info('New article added: {}'.format(new_article['link'])) except Exception: logger.exception('Error when inserting article in database:') -- cgit