mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-09-18 21:50:56 +00:00
Logging unread story hashes.
This commit is contained in:
parent
3bc1379455
commit
fa44dfd5f8
1 changed files with 6 additions and 1 deletions
|
@ -834,6 +834,7 @@ def unread_story_hashes(request):
|
|||
feed_ids = [sub.feed_id for sub in usersubs]
|
||||
|
||||
unread_feed_story_hashes = {}
|
||||
story_hash_count = 0
|
||||
for feed_id in feed_ids:
|
||||
try:
|
||||
us = UserSubscription.objects.get(user=user.pk, feed=feed_id)
|
||||
|
@ -841,7 +842,11 @@ def unread_story_hashes(request):
|
|||
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])
|
||||
|
||||
logging.user(request, "~FYLoading ~FCunread story hashes~FY: ~SB%s feeds~SN (%s story hashes)" %
|
||||
(len(feed_ids), story_hash_count))
|
||||
|
||||
return dict(unread_feed_story_hashes=unread_feed_story_hashes)
|
||||
|
||||
@ajax_login_required
|
||||
|
|
Loading…
Add table
Reference in a new issue