mirror of
https://github.com/viq/NewsBlur.git
synced 2025-09-18 21:43:31 +00:00
Trimming 1000 feeds at a time.
This commit is contained in:
parent
07b4aae1b9
commit
abf91eb778
1 changed files with 1 additions and 1 deletions
|
@ -1045,7 +1045,7 @@ class Feed(models.Model):
|
|||
|
||||
@classmethod
|
||||
def trim_old_stories(cls, page=1, verbose=True):
|
||||
limit = 100
|
||||
limit = 1000
|
||||
now = datetime.datetime.now()
|
||||
month_ago = now - datetime.timedelta(days=settings.DAYS_OF_UNREAD*2)
|
||||
old_feeds = Feed.objects.filter(DQ(last_story_date__isnull=True) |
|
||||
|
|
Loading…
Add table
Reference in a new issue