mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-09-18 21:50:56 +00:00
Fixing empty story hashes.
This commit is contained in:
parent
700ed52e4d
commit
894dbc01d1
1 changed files with 2 additions and 0 deletions
|
@ -549,6 +549,7 @@ class UserSubscription(models.Model):
|
|||
stories = cache.get('S:%s' % self.feed_id)
|
||||
|
||||
unread_story_hashes = self.story_hashes(user_id=self.user_id, feed_ids=[self.feed_id],
|
||||
usersubs=[self],
|
||||
read_filter='unread', group_by_feed=False,
|
||||
cutoff_date=self.user.profile.unread_cutoff)
|
||||
|
||||
|
@ -608,6 +609,7 @@ class UserSubscription(models.Model):
|
|||
feed_scores['neutral'] += 1
|
||||
else:
|
||||
unread_story_hashes = self.story_hashes(user_id=self.user_id, feed_ids=[self.feed_id],
|
||||
usersubs=[self],
|
||||
read_filter='unread', group_by_feed=False,
|
||||
include_timestamps=True,
|
||||
cutoff_date=self.user.profile.unread_cutoff)
|
||||
|
|
Loading…
Add table
Reference in a new issue