Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
search_tips
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
rank
search_tips
Commits
f76cff30
Commit
f76cff30
authored
Jul 29, 2019
by
段英荣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modify bug
parent
81d19b1f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
3 deletions
+8
-3
doctor_transfer.py
trans2es/utils/doctor_transfer.py
+4
-2
hospital_transfer.py
trans2es/utils/hospital_transfer.py
+4
-1
No files found.
trans2es/utils/doctor_transfer.py
View file @
f76cff30
...
...
@@ -87,8 +87,10 @@ class DoctorTransfer(object):
for
i
in
cut_word
:
if
keyword
.
find
(
i
)
>=
0
:
cut_bool
=
True
item_dict
=
dict
()
suggest_list
=
list
()
if
cut_bool
==
False
:
item_dict
=
dict
()
item_dict
[
"id"
]
=
getMd5Digest
(
str
(
instance
.
name
))
item_dict
[
"ori_name"
]
=
instance
.
name
item_dict
[
"is_online"
]
=
instance
.
is_online
...
...
@@ -106,4 +108,4 @@ class DoctorTransfer(object):
return
(
item_dict
,
suggest_list
)
except
:
logging
.
error
(
"catch exception,err_msg:
%
s"
%
traceback
.
format_exc
())
return
(
[],
[]
)
return
(
dict
(),
list
()
)
trans2es/utils/hospital_transfer.py
View file @
f76cff30
...
...
@@ -26,6 +26,9 @@ class HospitalTransfer(object):
for
i
in
cut_word
:
if
name
.
find
(
i
)
>=
0
:
cut_bool
=
True
item_dict
=
dict
()
suggest_list
=
list
()
if
cut_bool
==
False
:
item_dict
=
dict
()
item_dict
[
"id"
]
=
getMd5Digest
(
str
(
name
))
...
...
@@ -45,7 +48,7 @@ class HospitalTransfer(object):
return
(
item_dict
,
suggest_list
)
except
:
logging
.
error
(
"catch exception,err_msg:
%
s"
%
traceback
.
format_exc
())
return
(
[],
[]
)
return
(
dict
(),
list
()
)
@classmethod
def
get_hospital_lat_lng_info_to_redis
(
cls
,
instance
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment