Commit cc956651 authored by 段英荣's avatar 段英荣

Merge branch 'only_no_see' into 'master'

modify bug

See merge request !112
parents 5bfaeab4 b81ec78c
......@@ -137,10 +137,10 @@ class TopicUtils(object):
"gauss": {
"create_time": {
"scale": "1d",
"decay": 0.999
"decay": 0.99
}
},
"weight": 5
"weight": 500
}
# {
# "gauss": {
......
......@@ -25,6 +25,7 @@ from trans2es.models.tag import TopicTag,Tag
from trans2es.models.user_extra import UserExtra
from trans2es.models.group import Group
from trans2es.models.topic import Topic,ActionSumAboutTopic
from search.utils.common import *
class Job(object):
......@@ -127,7 +128,7 @@ class Command(BaseCommand):
def generate_topic_score_detail(self):
try:
topic_id_dict = TopicUtils.get_recommend_topic_ids(-1, 0, 500,test_score=True)
topic_id_dict = TopicUtils.get_recommend_topic_ids(241432787, 0, 500,query_type=TopicPageType.HOME_RECOMMEND,test_score=True)
for topic_id in topic_id_dict:
offline_score = 0.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