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
d20ce116
Commit
d20ce116
authored
Feb 12, 2020
by
lixiaofang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
merge master
parent
6fd369b7
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
5 deletions
+0
-5
words_utils.py
trans2es/commons/words_utils.py
+0
-2
trans2es_mapping2es.py
trans2es/management/commands/trans2es_mapping2es.py
+0
-3
No files found.
trans2es/commons/words_utils.py
View file @
d20ce116
...
@@ -182,8 +182,6 @@ class QueryWordAttr(object):
...
@@ -182,8 +182,6 @@ class QueryWordAttr(object):
"diary_num"
)
.
first
()
"diary_num"
)
.
first
()
for
value
in
data
.
values
():
for
value
in
data
.
values
():
total_num
+=
value
total_num
+=
value
print
(
total_num
)
return
total_num
return
total_num
except
:
except
:
logging
.
error
(
"catch exception,err_msg:
%
s"
%
traceback
.
format_exc
())
logging
.
error
(
"catch exception,err_msg:
%
s"
%
traceback
.
format_exc
())
...
...
trans2es/management/commands/trans2es_mapping2es.py
View file @
d20ce116
...
@@ -33,11 +33,8 @@ class Command(BaseCommand):
...
@@ -33,11 +33,8 @@ class Command(BaseCommand):
try
:
try
:
es_cli
=
ESPerform
.
get_cli
()
es_cli
=
ESPerform
.
get_cli
()
type_name1
=
"suggest-v1"
type_name1
=
"suggest-v1"
type_name2
=
"suggest-v2"
type_name
=
"suggest"
type_name
=
"suggest"
if
len
(
options
[
"type"
]):
if
len
(
options
[
"type"
]):
if
options
[
"type"
]
==
"all"
or
type_name
==
options
[
"type"
]
or
type_name1
==
options
[
"type"
]:
if
options
[
"type"
]
==
"all"
or
type_name
==
options
[
"type"
]
or
type_name1
==
options
[
"type"
]:
type_name
=
options
[
"type"
]
type_name
=
options
[
"type"
]
...
...
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