mirror of
https://github.com/viq/NewsBlur.git
synced 2025-09-18 21:43:31 +00:00
Merge branch 'master' into saved
* master: Reverse compatibility for saved story counts. Removing index from starred counts in prep for launch. Conflicts: apps/rss_feeds/models.py
This commit is contained in:
commit
8eeac56b0f
1 changed files with 4 additions and 2 deletions
|
@ -405,7 +405,9 @@ def refresh_feeds(request):
|
|||
social_feeds = MSocialSubscription.feeds_with_updated_counts(user, social_feed_ids=social_feed_ids)
|
||||
|
||||
favicons_fetching = [int(f) for f in favicons_fetching if f]
|
||||
feed_icons = dict([(i.feed_id, i) for i in MFeedIcon.objects(feed_id__in=favicons_fetching)])
|
||||
feed_icons = {}
|
||||
if favicons_fetching:
|
||||
feed_icons = dict([(i.feed_id, i) for i in MFeedIcon.objects(feed_id__in=favicons_fetching)])
|
||||
|
||||
for feed_id, feed in feeds.items():
|
||||
if feed_id in favicons_fetching and feed_id in feed_icons:
|
||||
|
@ -413,7 +415,7 @@ def refresh_feeds(request):
|
|||
feeds[feed_id]['favicon_color'] = feed_icons[feed_id].color
|
||||
feeds[feed_id]['favicon_fetching'] = feed.get('favicon_fetching')
|
||||
|
||||
user_subs = UserSubscription.objects.filter(user=user, active=True)
|
||||
user_subs = UserSubscription.objects.filter(user=user, active=True).only('feed')
|
||||
sub_feed_ids = [s.feed_id for s in user_subs]
|
||||
|
||||
if favicons_fetching:
|
||||
|
|
Loading…
Add table
Reference in a new issue