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
ce9c7af5
Commit
ce9c7af5
authored
Aug 27, 2019
by
李小芳
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'wordres' into 'master'
add See merge request
!30
parents
3633f177
acb91db9
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
wordresemble.py
trans2es/utils/wordresemble.py
+2
-0
No files found.
trans2es/utils/wordresemble.py
View file @
ce9c7af5
...
@@ -194,8 +194,10 @@ class WordResemble(object):
...
@@ -194,8 +194,10 @@ class WordResemble(object):
value
=
{
value_name_w
:
total_count
}
value
=
{
value_name_w
:
total_count
}
wordresemble_value
.
append
(
value
)
wordresemble_value
.
append
(
value
)
if
len
(
wordresemble_value
)
>
0
:
if
len
(
wordresemble_value
)
>
0
:
logging
.
info
(
"get type wordresemble_value:
%
s"
%
type
(
json
.
dumps
(
wordresemble_value
)))
redis_client
.
hset
(
QUERY_KEY
,
item_name
,
json
.
dumps
(
wordresemble_value
))
redis_client
.
hset
(
QUERY_KEY
,
item_name
,
json
.
dumps
(
wordresemble_value
))
if
len
(
keyword_value
)
>
0
:
if
len
(
keyword_value
)
>
0
:
logging
.
info
(
"get type keyword_value:
%
s"
%
type
(
json
.
dumps
(
keyword_value
)))
redis_client
.
hset
(
QUERY_KEY
,
query_base64
,
json
.
dumps
(
keyword_value
))
redis_client
.
hset
(
QUERY_KEY
,
query_base64
,
json
.
dumps
(
keyword_value
))
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