mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-09-18 21:50:56 +00:00
Fixing missig unread ranked stories cache.
This commit is contained in:
parent
674356fbed
commit
4f9c4fbbc3
2 changed files with 2 additions and 0 deletions
|
@ -293,6 +293,7 @@ class UserSubscription(models.Model):
|
|||
|
||||
if read_filter == "unread":
|
||||
unread_feed_story_hashes = story_hashes
|
||||
rt.zunionstore(unread_ranked_stories_keys, [ranked_stories_keys])
|
||||
else:
|
||||
unread_story_hashes = cls.story_hashes(user_id, feed_ids=feed_ids,
|
||||
read_filter="unread", order=order,
|
||||
|
|
|
@ -1065,6 +1065,7 @@ class MSocialSubscription(mongo.Document):
|
|||
|
||||
if read_filter == "unread":
|
||||
unread_feed_story_hashes = story_hashes
|
||||
rt.zunionstore(unread_ranked_stories_keys, [ranked_stories_keys])
|
||||
else:
|
||||
unread_story_hashes = cls.story_hashes(user_id, relative_user_id,
|
||||
subscription_user_ids=social_user_ids,
|
||||
|
|
Loading…
Add table
Reference in a new issue