mirror of
https://github.com/viq/NewsBlur.git
synced 2025-09-18 21:43:31 +00:00
Fixing read stories that are read after the mark_read date, but they are post dated.
This commit is contained in:
parent
918acf6607
commit
1268989726
1 changed files with 5 additions and 1 deletions
|
@ -146,10 +146,14 @@ def load_single_feed(request):
|
|||
|
||||
# print "Feed: %s %s" % (feed, usersub)
|
||||
logging.debug("Feed: " + feed.feed_title)
|
||||
if stories:
|
||||
last_read_date = stories[-1]['story_date']
|
||||
else:
|
||||
last_read_date = usersub.mark_read_date
|
||||
userstory = UserStory.objects.filter(
|
||||
user=user,
|
||||
feed=feed.id,
|
||||
read_date__gt=stories[-1:]['story_date']
|
||||
read_date__gt=last_read_date
|
||||
).values()
|
||||
for story in stories:
|
||||
for o in userstory:
|
||||
|
|
Loading…
Add table
Reference in a new issue