recommender: Build a list of sr_ids for normalized_hot.

This commit is contained in:
Brian Simpson
2015-03-10 17:34:29 -04:00
parent 8c521ea15d
commit 5601620a98

View File

@@ -200,7 +200,7 @@ def get_recommended_content(prefs, src, settings):
def get_hot_items(srs, item_type, src):
"""Get hot links from specified srs."""
hot_srs = {sr._id: sr for sr in srs} # for looking up sr by id
hot_link_fullnames = normalized_hot(sr._id for sr in srs)
hot_link_fullnames = normalized_hot([sr._id for sr in srs])
hot_links = Link._by_fullname(hot_link_fullnames, return_dict=False)
hot_items = []
for l in hot_links: