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
31a04f4a
Commit
31a04f4a
authored
Jan 25, 2019
by
段英荣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modify
parent
53c532e7
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
doctor_transfer.py
trans2es/utils/doctor_transfer.py
+1
-1
itemwiki_transfer.py
trans2es/utils/itemwiki_transfer.py
+1
-1
tag_transfer.py
trans2es/utils/tag_transfer.py
+1
-1
No files found.
trans2es/utils/doctor_transfer.py
View file @
31a04f4a
...
...
@@ -60,7 +60,7 @@ class DoctorTransfer(object):
redis_key_prefix
=
"search_tips:tips_mapping_num"
redis_data
=
redis_client
.
hget
(
redis_key_prefix
,
doctor_name
)
redis_val_dict
=
json
.
loads
(
str
(
redis_data
))
if
redis_data
else
{}
redis_val_dict
=
json
.
loads
(
str
(
redis_data
,
encoding
=
"utf-8"
))
if
redis_data
else
{}
total_count
=
doctor_results
if
't'
in
redis_val_dict
:
...
...
trans2es/utils/itemwiki_transfer.py
View file @
31a04f4a
...
...
@@ -66,7 +66,7 @@ class ItemWikiTransfer(object):
redis_key_prefix
=
"search_tips:tips_mapping_num"
redis_data
=
redis_client
.
hget
(
redis_key_prefix
,
wiki_name
)
redis_val_dict
=
json
.
loads
(
str
(
redis_data
))
if
redis_data
else
{}
redis_val_dict
=
json
.
loads
(
str
(
redis_data
,
encoding
=
"utf-8"
))
if
redis_data
else
{}
total_count
=
doctor_results
if
'w'
in
redis_val_dict
:
...
...
trans2es/utils/tag_transfer.py
View file @
31a04f4a
...
...
@@ -76,7 +76,7 @@ class TagTransfer(object):
redis_data
=
redis_client
.
hget
(
cls
.
tips_num_redis_key_prefix
,
tag_name
)
redis_val_dict
=
json
.
loads
(
str
(
redis_data
))
if
redis_data
else
{}
redis_val_dict
=
json
.
loads
(
str
(
redis_data
,
encoding
=
"utf-8"
))
if
redis_data
else
{}
total_count
=
doctor_results
if
's'
in
redis_val_dict
:
...
...
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