From cf23becb8bc923106223e564f7d77ea768ec6a9d Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Sun, 6 Dec 2020 00:00:17 +0100 Subject: chg: [commands] delete_read_articles will delete only 5000 articles. --- newspipe/commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/newspipe/commands.py b/newspipe/commands.py index 3edcaa5f..a12f92ce 100755 --- a/newspipe/commands.py +++ b/newspipe/commands.py @@ -106,7 +106,7 @@ def delete_read_articles(): filter["user_id__ne"] = 1 #filter["readed"] = True # temporary comment filter["retrieved_date__lt"] = date.today() - relativedelta(days=5) - articles = ArticleController().read(**filter).limit(10000) + articles = ArticleController().read(**filter).limit(5000) for article in articles: try: db.session.delete(article) -- cgit