diff options
-rwxr-xr-x | newspipe/commands.py | 4 |
1 files 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) |