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

Merge branch 'update_hospital_info' into 'master'

add

See merge request !73
parents c04e01a0 b0691fde
......@@ -20,11 +20,8 @@ class HospitalTransfer(object):
try:
ret_list = list()
name = instance.name.strip()
sub_query = re.sub('\W+', '', name)
name = sub_query
cut_bool = False
cut_word = ["下线", "停用", "已经下线", "账号停用"]
for i in cut_word:
if name.find(i) >= 0:
cut_bool = True
......@@ -37,7 +34,6 @@ class HospitalTransfer(object):
item_dict["ori_name"] = name
item_dict["is_online"] = by_hospital_id_judge_office_online(is_online=instance.is_online,
hospital_id=instance.id, name=name)
item_dict["order_weight"] = QueryWordAttr.get_hospital_query_word_weight(name)
item_dict["results_num"] = QueryWordAttr.get_query_results_num(name)
item_dict["type_flag"] = get_tips_word_type(name)
......
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