From 9aa14c690b5a749b35dc9081871e0a12fc01e206 Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Sat, 5 Dec 2020 21:58:02 +0100 Subject: chg: [commands] delete_read_articles will also delete unread articles. --- newspipe/commands.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/newspipe/commands.py b/newspipe/commands.py index 0faf18b8..3edcaa5f 100755 --- a/newspipe/commands.py +++ b/newspipe/commands.py @@ -104,9 +104,9 @@ def delete_read_articles(): "Delete read articles retrieved since more than 5 days ago." filter = {} filter["user_id__ne"] = 1 - filter["readed"] = True + #filter["readed"] = True # temporary comment filter["retrieved_date__lt"] = date.today() - relativedelta(days=5) - articles = ArticleController().read(**filter) + articles = ArticleController().read(**filter).limit(10000) for article in articles: try: db.session.delete(article) -- cgit