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
e7b65296
Commit
e7b65296
authored
Apr 28, 2019
by
段英荣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modify
parent
80561432
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
doctor.py
trans2es/models/doctor.py
+1
-0
hospital_transfer.py
trans2es/utils/hospital_transfer.py
+1
-1
No files found.
trans2es/models/doctor.py
View file @
e7b65296
...
@@ -23,6 +23,7 @@ class Hospital(models.Model):
...
@@ -23,6 +23,7 @@ class Hospital(models.Model):
id
=
models
.
CharField
(
max_length
=
100
,
primary_key
=
True
,
default
=
uuid4
)
id
=
models
.
CharField
(
max_length
=
100
,
primary_key
=
True
,
default
=
uuid4
)
name
=
models
.
CharField
(
max_length
=
100
,
unique
=
True
,
help_text
=
u"医院名称"
)
name
=
models
.
CharField
(
max_length
=
100
,
unique
=
True
,
help_text
=
u"医院名称"
)
is_online
=
models
.
BooleanField
(
default
=
False
,
help_text
=
u"是否上线"
,
verbose_name
=
u"上线"
)
google_loc_lng
=
models
.
FloatField
(
default
=
0
,
help_text
=
u"经度(-180~180)"
)
google_loc_lng
=
models
.
FloatField
(
default
=
0
,
help_text
=
u"经度(-180~180)"
)
google_loc_lat
=
models
.
FloatField
(
default
=
0
,
help_text
=
u"纬度"
)
google_loc_lat
=
models
.
FloatField
(
default
=
0
,
help_text
=
u"纬度"
)
...
...
trans2es/utils/hospital_transfer.py
View file @
e7b65296
...
@@ -22,7 +22,7 @@ class HospitalTransfer(object):
...
@@ -22,7 +22,7 @@ class HospitalTransfer(object):
item_dict
=
dict
()
item_dict
=
dict
()
item_dict
[
"id"
]
=
getMd5Digest
(
str
(
instance
.
name
))
item_dict
[
"id"
]
=
getMd5Digest
(
str
(
instance
.
name
))
item_dict
[
"ori_name"
]
=
instance
.
name
item_dict
[
"ori_name"
]
=
instance
.
name
item_dict
[
"is_online"
]
=
Tru
e
item_dict
[
"is_online"
]
=
instance
.
is_onlin
e
item_dict
[
"order_weight"
]
=
QueryWordAttr
.
get_hospital_query_word_weight
(
instance
.
name
)
item_dict
[
"order_weight"
]
=
QueryWordAttr
.
get_hospital_query_word_weight
(
instance
.
name
)
item_dict
[
"results_num"
]
=
QueryWordAttr
.
get_query_results_num
(
instance
.
name
)
item_dict
[
"results_num"
]
=
QueryWordAttr
.
get_query_results_num
(
instance
.
name
)
...
...
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