mirror of
https://github.com/viq/NewsBlur.git
synced 2025-08-31 22:20:12 +00:00
Merge branch 'master' into circular
* master: Slight improvement to unread story hashes endpoint by skipping feeds with no neutral/positive unreads.
This commit is contained in:
commit
edded2df63
1 changed files with 2 additions and 0 deletions
|
@ -858,6 +858,8 @@ def unread_story_hashes(request):
|
|||
us = UserSubscription.objects.get(user=user.pk, feed=feed_id)
|
||||
except UserSubscription.DoesNotExist:
|
||||
continue
|
||||
if not us.unread_count_neutral and not us.unread_count_positive:
|
||||
continue
|
||||
unread_feed_story_hashes[feed_id] = us.get_stories(read_filter='unread', limit=500,
|
||||
hashes_only=True)
|
||||
story_hash_count += len(unread_feed_story_hashes[feed_id])
|
||||
|
|
Loading…
Add table
Reference in a new issue