mirror of
https://github.com/viq/NewsBlur.git
synced 2025-08-31 22:20:12 +00:00
Use latest unread_cutoff to fetch stories for inverting.
This commit is contained in:
parent
c296948ba8
commit
eed3de0f82
1 changed files with 1 additions and 1 deletions
|
@ -794,7 +794,7 @@ class UserSubscription(models.Model):
|
|||
# Story is outside the mark as read range, so invert all stories before.
|
||||
newer_stories = MStory.objects(story_feed_id=story.story_feed_id,
|
||||
story_date__gte=story.story_date,
|
||||
story_date__lte=self.mark_read_date
|
||||
story_date__lte=unread_cutoff
|
||||
).only('story_hash')
|
||||
newer_stories = [s.story_hash for s in newer_stories]
|
||||
self.mark_read_date = story.story_date - datetime.timedelta(minutes=1)
|
||||
|
|
Loading…
Add table
Reference in a new issue