Commit 353962d2 authored by 谢祁峰's avatar 谢祁峰

fix

parent 078a9e5c
......@@ -643,7 +643,7 @@ class CollectData(object):
"api/v1/cards/topic,device_id:%s,tag_list:%s" % (str(device_id), str(tag_list)))
# (客户端创建回答,后台创建回答或修改回答关联标签关键字进linucb
elif 'SYS' in data and 'APP' in data and 'action' in data['SYS'] and \
("venus/community/topic/create" in data['SYS'].get('action',"") or "venus/sun/topic/edit" in str(data['SYS'].get('action',""))):
("venus/community/topic/create" in str(data['SYS'].get('action',"")) or "venus/sun/topic/edit" in str(data['SYS'].get('action',""))):
logging.info("action=venus/community/topic/create")
tag_ids = list(data["APP"].get("tag_ids", []))
tag_list = list(Tag.objects.using(settings.SLAVE1_DB_NAME).filter(
......
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