Commit 62e9a30f authored by 李小芳's avatar 李小芳

同步

parent a4eff597
...@@ -60,7 +60,7 @@ class BrandWikiTransferV1(object): ...@@ -60,7 +60,7 @@ class BrandWikiTransferV1(object):
item_dict["offline_score"] = 0.0 item_dict["offline_score"] = 0.0
item_dict["tips_name_type"] = 3 item_dict["tips_name_type"] = 3
ret_list.append(item_dict) ret_list.append(item_dict)
suggest_list = get_tips_suggest_list_v1(str(instance.name).lower()) suggest_list = get_tips_suggest_list(str(instance.name).lower())
return (item_dict, suggest_list) return (item_dict, suggest_list)
except: except:
logging.error("catch exception,err_msg:%s" % traceback.format_exc()) logging.error("catch exception,err_msg:%s" % traceback.format_exc())
......
...@@ -60,7 +60,7 @@ class CollectWikiTransferV1(object): ...@@ -60,7 +60,7 @@ class CollectWikiTransferV1(object):
item_dict["offline_score"] = 0.0 item_dict["offline_score"] = 0.0
item_dict["tips_name_type"] = 3 item_dict["tips_name_type"] = 3
ret_list.append(item_dict) ret_list.append(item_dict)
suggest_list = get_tips_suggest_list_v1(str(instance.name).lower()) suggest_list = get_tips_suggest_list(str(instance.name).lower())
return (item_dict, suggest_list) return (item_dict, suggest_list)
except: except:
logging.error("catch exception,err_msg:%s" % traceback.format_exc()) logging.error("catch exception,err_msg:%s" % traceback.format_exc())
......
...@@ -205,7 +205,7 @@ class DoctorTransferV1(object): ...@@ -205,7 +205,7 @@ class DoctorTransferV1(object):
item_dict["offline_score"] = 0.0 item_dict["offline_score"] = 0.0
item_dict["tips_name_type"] = 2 item_dict["tips_name_type"] = 2
ret_list.append(item_dict) ret_list.append(item_dict)
suggest_list = get_tips_suggest_list_v1(instance.name) suggest_list = get_tips_suggest_list(instance.name)
return (item_dict, suggest_list) return (item_dict, suggest_list)
except: except:
logging.error("catch exception,err_msg:%s" % traceback.format_exc()) logging.error("catch exception,err_msg:%s" % traceback.format_exc())
......
...@@ -98,7 +98,7 @@ class HospitalTransferV1(object): ...@@ -98,7 +98,7 @@ class HospitalTransferV1(object):
ret_list.append(item_dict) ret_list.append(item_dict)
suggest_list = get_tips_suggest_list_v1(str(name).lower()) suggest_list = get_tips_suggest_list(str(name).lower())
return (item_dict, suggest_list) return (item_dict, suggest_list)
except: except:
......
...@@ -190,7 +190,7 @@ class ItemWikiTransferV1(object): ...@@ -190,7 +190,7 @@ class ItemWikiTransferV1(object):
item_dict["offline_score"] = 0.0 item_dict["offline_score"] = 0.0
item_dict["tips_name_type"] = 3 item_dict["tips_name_type"] = 3
ret_list.append(item_dict) ret_list.append(item_dict)
suggest_list = get_tips_suggest_list_v1(str(instance.name).lower()) suggest_list = get_tips_suggest_list(str(instance.name).lower())
return (item_dict, suggest_list) return (item_dict, suggest_list)
except: except:
logging.error("catch exception,err_msg:%s" % traceback.format_exc()) logging.error("catch exception,err_msg:%s" % traceback.format_exc())
......
...@@ -60,7 +60,7 @@ class ProduceWikiTransferV1(object): ...@@ -60,7 +60,7 @@ class ProduceWikiTransferV1(object):
item_dict["offline_score"] = 0.0 item_dict["offline_score"] = 0.0
item_dict["tips_name_type"] = 3 item_dict["tips_name_type"] = 3
ret_list.append(item_dict) ret_list.append(item_dict)
suggest_list = get_tips_suggest_list_v1(str(instance.name).lower()) suggest_list = get_tips_suggest_list(str(instance.name).lower())
return (item_dict, suggest_list) return (item_dict, suggest_list)
except: except:
......
...@@ -283,7 +283,7 @@ class TagTransferV1(object): ...@@ -283,7 +283,7 @@ class TagTransferV1(object):
item_dict["offline_score"] = 0.0 item_dict["offline_score"] = 0.0
item_dict["tips_name_type"] = 0 item_dict["tips_name_type"] = 0
ret_list.append(item_dict) ret_list.append(item_dict)
suggest_list = get_tips_suggest_list_v1(str(instance.name).lower()) suggest_list = get_tips_suggest_list(str(instance.name).lower())
logging.info("item_dict:%s, suggest_list:%s" % (item_dict, suggest_list)) logging.info("item_dict:%s, suggest_list:%s" % (item_dict, suggest_list))
return (item_dict, suggest_list) return (item_dict, suggest_list)
except: except:
......
...@@ -251,7 +251,7 @@ class WordResembleV1(object): ...@@ -251,7 +251,7 @@ class WordResembleV1(object):
item_dict["offline_score"] = 0.0 item_dict["offline_score"] = 0.0
item_dict["tips_name_type"] = 4 item_dict["tips_name_type"] = 4
ret_list.append(item_dict) ret_list.append(item_dict)
suggest_list = get_tips_suggest_list_v1(str(instance.keyword).lower()) suggest_list = get_tips_suggest_list(str(instance.keyword).lower())
return (item_dict, suggest_list) return (item_dict, suggest_list)
except: except:
......
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