mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-09-18 21:50:56 +00:00
Merge branch 'master' of git@github.com:samuelclay/newsblur
This commit is contained in:
commit
41060cf3ce
1 changed files with 1 additions and 1 deletions
|
@ -166,7 +166,7 @@ class Feed(models.Model):
|
|||
print 'Found %s stories in %s. Trimming...' % (stories.count(), self)
|
||||
if stories.count() > 1000:
|
||||
old_story = story[1000]
|
||||
user_stories = UserStory.objects.filter(story=story,
|
||||
user_stories = UserStory.objects.filter(feed=self,
|
||||
read_date__lte=old_story.story_date)
|
||||
user_stories_count = user_stories.count()
|
||||
user_stories.delete()
|
||||
|
|
Loading…
Add table
Reference in a new issue