Commit 760a98f3 authored by lixiaofang's avatar lixiaofang

add

parent 58ef93f4
......@@ -44,13 +44,14 @@ class WordResemble(object):
try:
ret_list = list()
item_dict = dict()
suggest_list = list()
keyword = instance.keyword
cut_bool = False
cut_word = ["下线", "停用", "已经下线", "账号停用"]
for i in cut_word:
if keyword.find(i) >= 0:
cut_bool = True
ret_bol = QueryWordAttr.save_query_to_redis(query=str(instance.name))
ret_bol = QueryWordAttr.save_query_to_redis(query=str(instance.keyword))
if not cut_bool and ret_bol:
item_dict["id"] = getMd5Digest(str(instance.keyword))
item_dict["ori_name"] = instance.keyword
......@@ -237,7 +238,7 @@ class WordResembleV1(object):
for i in cut_word:
if keyword.find(i) >= 0:
cut_bool = True
ret_bol = QueryWordAttr.save_query_to_redis(query=str(instance.name), type_v1=True)
ret_bol = QueryWordAttr.save_query_to_redis(query=str(instance.keyword), type_v1=True)
if not cut_bool and ret_bol:
item_dict["id"] = getMd5Digest(str(instance.keyword))
item_dict["ori_name"] = instance.keyword
......
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