From c909e333b9fe78c7a1beef56455260b67a38d827 Mon Sep 17 00:00:00 2001 From: Samuel Clay Date: Thu, 20 Jan 2011 18:20:38 -0500 Subject: [PATCH] By adding an entire minute on to the mark_as_read date, we are inadvertantly ignoring all read stories during that minute, which may lead to stories being shown as unread, when they are in fact read. --- apps/reader/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/reader/models.py b/apps/reader/models.py index 65bb9adff..3ceca5802 100644 --- a/apps/reader/models.py +++ b/apps/reader/models.py @@ -54,7 +54,7 @@ class UserSubscription(models.Model): # Use the latest story to get last read time. if MStory.objects(story_feed_id=self.feed.pk).first(): latest_story_date = MStory.objects(story_feed_id=self.feed.pk).order_by('-story_date').only('story_date')[0]['story_date']\ - + datetime.timedelta(minutes=1) + + datetime.timedelta(seconds=1) else: latest_story_date = now