Commit 2d063776 authored by 李小芳's avatar 李小芳

Merge branch 'error_correction' into 'master'

大小写

See merge request !46
parents b99b01c2 b0764916
......@@ -33,7 +33,7 @@ class BrandWikiTransfer(object):
ret_list.append(item_dict)
suggest_list = get_tips_suggest_list(instance.name)
suggest_list = get_tips_suggest_list(str(instance.name).lower())
return (item_dict,suggest_list)
except:
......
......@@ -33,7 +33,7 @@ class CollectWikiTransfer(object):
ret_list.append(item_dict)
suggest_list = get_tips_suggest_list(instance.name)
suggest_list = get_tips_suggest_list(str(instance.name).lower())
return (item_dict,suggest_list)
except:
......
......@@ -97,7 +97,7 @@ class DoctorTransfer(object):
item_dict["order_weight"] = QueryWordAttr.get_doctor_query_word_weight(instance.name)
item_dict["results_num"] = QueryWordAttr.get_query_results_num(instance.name)
item_dict["type_flag"] = get_tips_word_type(instance.name)
item_dict["type_flag"] = get_tips_word_type(str(instance.name).lower())
item_dict["offline_score"] = 0.0
item_dict["tips_name_type"] = 2
......
......@@ -43,7 +43,7 @@ class HospitalTransfer(object):
ret_list.append(item_dict)
suggest_list = get_tips_suggest_list(name)
suggest_list = get_tips_suggest_list(str(name).lower())
return (item_dict, suggest_list)
except:
......
......@@ -33,7 +33,7 @@ class ProduceWikiTransfer(object):
ret_list.append(item_dict)
suggest_list = get_tips_suggest_list(instance.name)
suggest_list = get_tips_suggest_list(str(instance.name).lower())
return (item_dict, suggest_list)
except:
......
......@@ -111,7 +111,7 @@ class TagTransfer(object):
ret_list.append(item_dict)
suggest_list = get_tips_suggest_list(instance.name)
suggest_list = get_tips_suggest_list(str(instance.name).lower())
return (item_dict, suggest_list)
except:
......
......@@ -60,7 +60,7 @@ class WordResemble(object):
item_dict["offline_score"] = 0.0
item_dict["tips_name_type"] = 4
ret_list.append(item_dict)
suggest_list = get_tips_suggest_list(instance.keyword)
suggest_list = get_tips_suggest_list(str(instance.keyword).lower())
return (item_dict, suggest_list)
......
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