mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-09-18 21:50:56 +00:00
Placing upper limits on dates
This commit is contained in:
parent
8bf5fc8dca
commit
44f89023ff
1 changed files with 3 additions and 1 deletions
|
@ -185,7 +185,9 @@ class ProcessFeed:
|
|||
story_feed=self.feed,
|
||||
story_date__gte=start_date,
|
||||
story_date__lte=end_date,
|
||||
).order_by('-story_date').values()[:100]
|
||||
).order_by('-story_date').values()
|
||||
if len(existing_stories) > 100:
|
||||
existing_stories = existing_stories[:10] + existing_stories[-100:]
|
||||
ret_values = self.feed.add_update_stories(self.fpf.entries, existing_stories)
|
||||
|
||||
return FEED_OK, ret_values
|
||||
|
|
Loading…
Add table
Reference in a new issue