Commit b99b01c2 authored by 李小芳's avatar 李小芳

Merge branch 'error_correction' into 'master'

Error correction

See merge request !45
parents 646fcb3d b03031bc
This diff is collapsed.
......@@ -17,8 +17,10 @@ def uuid4():
"""
return uuid.uuid4().hex
def get_tips_suggest_list(instance_cn_name):
try:
print(instance_cn_name)
# ch_full_weight = 6.0 * 1000
# py_full_weight = 3.0 * 1000
full_weight = 3.0 * 1000
......
......@@ -97,8 +97,9 @@ class ItemWikiTransfer(object):
ret_list.append(item_dict)
suggest_list = get_tips_suggest_list(instance.name)
suggest_list = get_tips_suggest_list(str(instance.name).lower())
logging.info("get suggest_list:%s" % suggest_list)
return (item_dict, suggest_list)
except:
logging.error("catch exception,err_msg:%s" % traceback.format_exc())
......
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