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
8634a541
Commit
8634a541
authored
Jul 03, 2019
by
lixiaofang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add
parent
1cc300cd
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
associate_trans2es_mapping2es.py
...iate/management/commands/associate_trans2es_mapping2es.py
+10
-2
No files found.
associate/management/commands/associate_trans2es_mapping2es.py
View file @
8634a541
...
...
@@ -34,10 +34,18 @@ class Command(BaseCommand):
try
:
es_cli
=
ESPerform
.
get_cli
()
type_name
=
"associate_tag"
type_name1
=
"associate_tag"
type_name2
=
"associate_tag_brand"
type_name3
=
"associate_tag_doctor"
type_name4
=
"associate_tag_hospital"
type_name5
=
"associate_tag_instrument"
type_name6
=
"associate_tag_position"
type_name7
=
"associate_tag_project"
if
len
(
options
[
"type"
]):
if
options
[
"type"
]
==
"all"
or
type_name
==
options
[
"type"
]:
if
options
[
"type"
]
==
"all"
or
type_name1
==
options
[
"type"
]
or
type_name2
==
options
[
"type"
]
or
\
type_name3
==
options
[
"type"
]
or
type_name4
==
options
[
"type"
]
or
type_name5
==
options
[
"type"
]
\
or
type_name6
==
options
[
"type"
]
or
type_name7
==
options
[
"type"
]:
type_name
=
options
[
"type"
]
official_index_name
=
ESPerform
.
get_official_index_name
(
type_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