aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2019-05-23 08:09:15 +0200
committerCédric Bonhomme <cedric@cedricbonhomme.org>2019-05-23 08:09:15 +0200
commit208fc48fdea7eb17270fd2a706513259043097a1 (patch)
tree8a8f4124ff522b869e6068edfe171b4f313f122b
parentRemoved Heroke deploy buttom from the about page. (diff)
downloadnewspipe-208fc48fdea7eb17270fd2a706513259043097a1.tar.gz
newspipe-208fc48fdea7eb17270fd2a706513259043097a1.tar.bz2
newspipe-208fc48fdea7eb17270fd2a706513259043097a1.zip
Rmoved list of created articles.
-rw-r--r--src/crawler/default_crawler.py3
1 files changed, 1 insertions, 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:')
bgstack15