mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-09-18 21:50:56 +00:00
Manual unreads read from primary.
This commit is contained in:
parent
08c75e9261
commit
7b635b8414
1 changed files with 1 additions and 1 deletions
|
@ -338,7 +338,7 @@ class UserSubscription(models.Model):
|
|||
|
||||
def oldest_manual_unread_story_date(self, r=None):
|
||||
if not r:
|
||||
r = redis.Redis(connection_pool=settings.REDIS_STORY_HASH_SECONDARY_POOL)
|
||||
r = redis.Redis(connection_pool=settings.REDIS_STORY_HASH_POOL)
|
||||
|
||||
user_manual_unread_stories_feed_key = f"uU:{self.user_id}:{self.feed_id}"
|
||||
oldest_manual_unread = r.zrevrange(user_manual_unread_stories_feed_key, -1, -1, withscores=True)
|
||||
|
|
Loading…
Add table
Reference in a new issue