diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2020-12-05 21:58:02 +0100 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2020-12-05 21:58:02 +0100 |
commit | 9aa14c690b5a749b35dc9081871e0a12fc01e206 (patch) | |
tree | 2cf1f67db052b98ca752ae3f3ac1b967071b77c6 | |
parent | chg: [dependencies] Updated Python dependencies. (diff) | |
download | newspipe-9aa14c690b5a749b35dc9081871e0a12fc01e206.tar.gz newspipe-9aa14c690b5a749b35dc9081871e0a12fc01e206.tar.bz2 newspipe-9aa14c690b5a749b35dc9081871e0a12fc01e206.zip |
chg: [commands] delete_read_articles will also delete unread articles.
-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) |