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
3b6b6fbb
Commit
3b6b6fbb
authored
Jan 15, 2020
by
lixiaofang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add
parent
6854ba01
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 @
3b6b6fbb
This diff is collapsed.
Click to expand it.
trans2es/commons/commons.py
View file @
3b6b6fbb
...
@@ -17,8 +17,10 @@ def uuid4():
...
@@ -17,8 +17,10 @@ def uuid4():
"""
"""
return
uuid
.
uuid4
()
.
hex
return
uuid
.
uuid4
()
.
hex
def
get_tips_suggest_list
(
instance_cn_name
):
def
get_tips_suggest_list
(
instance_cn_name
):
try
:
try
:
print
(
instance_cn_name
)
# ch_full_weight = 6.0 * 1000
# ch_full_weight = 6.0 * 1000
# py_full_weight = 3.0 * 1000
# py_full_weight = 3.0 * 1000
full_weight
=
3.0
*
1000
full_weight
=
3.0
*
1000
...
...
trans2es/utils/itemwiki_transfer.py
View file @
3b6b6fbb
...
@@ -97,8 +97,9 @@ class ItemWikiTransfer(object):
...
@@ -97,8 +97,9 @@ class ItemWikiTransfer(object):
ret_list
.
append
(
item_dict
)
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
)
return
(
item_dict
,
suggest_list
)
except
:
except
:
logging
.
error
(
"catch exception,err_msg:
%
s"
%
traceback
.
format_exc
())
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