mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-09-18 21:50:56 +00:00
Handling case where every story is the same time.
This commit is contained in:
parent
2ecc6fe566
commit
920e4be4bd
1 changed files with 3 additions and 0 deletions
|
@ -2451,6 +2451,9 @@ class MStory(mongo.Document):
|
|||
(unicode(feed)[:30], stories.count(), cutoff))
|
||||
try:
|
||||
story_trim_date = stories[cutoff].story_date
|
||||
if story_trim_date == stories[0].story_date:
|
||||
# Handle case where every story is the same time
|
||||
story_trim_date = story_trim_date - datetime.timedelta(seconds=1)
|
||||
except IndexError, e:
|
||||
logging.debug(' ***> [%-30s] ~BRError trimming feed: %s' % (unicode(feed)[:30], e))
|
||||
return extra_stories_count
|
||||
|
|
Loading…
Add table
Reference in a new issue