Commit aff6859a authored by 谢祁峰's avatar 谢祁峰

fix

parent 83dc4db9
......@@ -613,8 +613,9 @@ class CollectData(object):
(str(data['SYS']['action']), str(device_id),
str(tag_query_results_multi)))
# 首页搜索精准匹配标签关键字进linucb
elif 'SYS' in data and 'APP' in data and 'action' in data['SYS'] and "api/v1/cards/topic" in data['SYS'][
'action'] :
elif 'SYS' in data and 'APP' in data and 'action' in data['SYS'] and "api/v1/cards/topic" in \
data['SYS'][
'action']:
tag_name = raw_val_dict["APP"].get("query", "")
tag_id = raw_val_dict["APP"].get("action")
tag_list = list(Tag.objects.using(settings.SLAVE1_DB_NAME).filter(
......@@ -628,7 +629,8 @@ class CollectData(object):
logging.info("action=home_page_search,update lintag success")
# (客户端创建回答,后台创建回答或修改回答关联标签关键字进linucb
elif 'SYS' in data and 'APP' in data and 'action' in data['SYS'] and \
(data['SYS']['action'] in ("venus/community/topic/create", "venus/sun/topic/edit")):
("venus/community/topic/create" in data['SYS'][
'action'] or "venus/sun/topic/edit" in data['SYS']['action']):
tag_ids = list(raw_val_dict["APP"].get("tag_ids", []))
tag_list = list(Tag.objects.using(settings.SLAVE1_DB_NAME).filter(
id__in=tag_ids, is_online=True, is_deleted=False,
......@@ -640,7 +642,7 @@ class CollectData(object):
10)
# 创建问题关注标签关键字进linucb
elif 'SYS' in data and 'APP' in data and 'action' in data['SYS'] and \
data['SYS']['action'] == "venus/sun/pictorial/edit":
"venus/sun/pictorial/edit" in data['SYS']['action']:
tag_ids = list(raw_val_dict["APP"].get("tag_ids", []))
tag_list = list(Tag.objects.using(settings.SLAVE1_DB_NAME).filter(
id__in=tag_ids, is_online=True, is_deleted=False,
......
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