mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-09-18 21:50:56 +00:00
Removing index from starred counts in prep for launch.
This commit is contained in:
parent
4672a4da23
commit
c87116b1da
2 changed files with 5 additions and 3 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:
|
||||
|
|
|
@ -2183,7 +2183,7 @@ class MStarredStory(mongo.Document):
|
|||
|
||||
class MStarredStoryCounts(mongo.Document):
|
||||
user_id = mongo.IntField()
|
||||
tag = mongo.StringField(max_length=128, unique_with=['user_id'])
|
||||
tag = mongo.StringField(max_length=128)
|
||||
slug = mongo.StringField(max_length=128)
|
||||
count = mongo.IntField()
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue