mirror of
https://github.com/viq/NewsBlur.git
synced 2025-09-18 21:43:31 +00:00
Now that we're counting unread stories differently, make sure to not include old stories that are behind the mark_read date for the user.
This commit is contained in:
parent
82163735e5
commit
4119266e56
1 changed files with 2 additions and 0 deletions
|
@ -92,6 +92,8 @@ class UserSubscription(models.Model):
|
|||
logging.info(' ---> [%s] MStory: %s' % (self.user, datetime.datetime.now() - now))
|
||||
unread_stories_db = []
|
||||
for story in stories_db:
|
||||
if story.story_date < date_delta:
|
||||
continue
|
||||
if hasattr(story, 'story_guid') and story.story_guid not in read_stories_ids:
|
||||
unread_stories_db.append(story)
|
||||
elif isinstance(story.id, unicode) and story.id not in read_stories_ids:
|
||||
|
|
Loading…
Add table
Reference in a new issue