aboutsummaryrefslogtreecommitdiff
path: root/newspipe
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2020-12-06 00:00:17 +0100
committerCédric Bonhomme <cedric@cedricbonhomme.org>2020-12-06 00:00:17 +0100
commitcf23becb8bc923106223e564f7d77ea768ec6a9d (patch)
tree761d5cffdcace75ec5b6e2f5a76f81f7f1f1f4b3 /newspipe
parentchg: [commands] delete_read_articles will also delete unread articles. (diff)
downloadnewspipe-cf23becb8bc923106223e564f7d77ea768ec6a9d.tar.gz
newspipe-cf23becb8bc923106223e564f7d77ea768ec6a9d.tar.bz2
newspipe-cf23becb8bc923106223e564f7d77ea768ec6a9d.zip
chg: [commands] delete_read_articles will delete only 5000 articles.
Diffstat (limited to 'newspipe')
-rwxr-xr-xnewspipe/commands.py2
1 files changed, 1 insertions, 1 deletions
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)
bgstack15