aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2020-12-05 21:58:02 +0100
committerCédric Bonhomme <cedric@cedricbonhomme.org>2020-12-05 21:58:02 +0100
commit9aa14c690b5a749b35dc9081871e0a12fc01e206 (patch)
tree2cf1f67db052b98ca752ae3f3ac1b967071b77c6
parentchg: [dependencies] Updated Python dependencies. (diff)
downloadnewspipe-9aa14c690b5a749b35dc9081871e0a12fc01e206.tar.gz
newspipe-9aa14c690b5a749b35dc9081871e0a12fc01e206.tar.bz2
newspipe-9aa14c690b5a749b35dc9081871e0a12fc01e206.zip
chg: [commands] delete_read_articles will also delete unread articles.
-rwxr-xr-xnewspipe/commands.py4
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)
bgstack15