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
b99b01c2
Commit
b99b01c2
authored
Jan 17, 2020
by
李小芳
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'error_correction' into 'master'
Error correction See merge request
!45
parents
646fcb3d
b03031bc
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
1 deletion
+4
-1
auto_tips.py
search/utils/auto_tips.py
+0
-0
commons.py
trans2es/commons/commons.py
+2
-0
itemwiki_transfer.py
trans2es/utils/itemwiki_transfer.py
+2
-1
No files found.
search/utils/auto_tips.py
View file @
b99b01c2
This diff is collapsed.
Click to expand it.
trans2es/commons/commons.py
View file @
b99b01c2
...
...
@@ -17,8 +17,10 @@ def uuid4():
"""
return
uuid
.
uuid4
()
.
hex
def
get_tips_suggest_list
(
instance_cn_name
):
try
:
print
(
instance_cn_name
)
# ch_full_weight = 6.0 * 1000
# py_full_weight = 3.0 * 1000
full_weight
=
3.0
*
1000
...
...
trans2es/utils/itemwiki_transfer.py
View file @
b99b01c2
...
...
@@ -97,8 +97,9 @@ class ItemWikiTransfer(object):
ret_list
.
append
(
item_dict
)
suggest_list
=
get_tips_suggest_list
(
instance
.
name
)
suggest_list
=
get_tips_suggest_list
(
str
(
instance
.
name
)
.
lower
()
)
logging
.
info
(
"get suggest_list:
%
s"
%
suggest_list
)
return
(
item_dict
,
suggest_list
)
except
:
logging
.
error
(
"catch exception,err_msg:
%
s"
%
traceback
.
format_exc
())
...
...
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