Have cachec read stories but no unread stories means all stories are read.

This commit is contained in:
Samuel Clay 2018-07-10 22:32:41 -04:00
parent 4b78e2c457
commit 352ba31f57

View file

@ -290,7 +290,7 @@ class UserSubscription(models.Model):
elif unreads_cached:
unread_story_hashes = range_func(unread_ranked_stories_keys, 0, offset+limit)
else:
unread_story_hashes = None
unread_story_hashes = []
return story_hashes, unread_story_hashes
else:
rt.delete(ranked_stories_keys)