Commit 3ff57bb7 authored by 李小芳's avatar 李小芳

smr

parent 6f1dcb79
......@@ -61,11 +61,9 @@ def get_answers(pks):
item["hot_score"] = answer.get_hot_score_answer()
item['new_smr'] = answer.get_new_smart_rank_score(answer_id=answer.id)
score = answer.get_search_new_smart_rank_score(answer_id=answer.id)
item['search_new_smr'] = score.get("smart_rank_score", 0)
item['detail_smr'] = score.get('smart_rank_v2', 0)
community_score = answer.get_community_answer_smr_score(answer.id)
item['search_new_smr'] = community_score.get("smart_rank_score", 0)
# community_score = answer.get_community_answer_smr_score(answer.id)
community_hot_score = answer.get_community_answer_hot_score(answer.id)
item['new_goodclicks'] = community_hot_score.get('hot_score', 0)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment