Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
ffm-baseline
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ML
ffm-baseline
Commits
4abb0c80
Commit
4abb0c80
authored
Dec 03, 2019
by
高雅喆
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
问答新smart_rank全量
parent
885d619c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
gm_feed_cold_start.py
eda/smart_rank/gm_feed_cold_start.py
+2
-1
No files found.
eda/smart_rank/gm_feed_cold_start.py
View file @
4abb0c80
...
...
@@ -217,6 +217,7 @@ if __name__ == "__main__":
redis_client
.
rpush
(
light_clinic_beauty_topic_queue_key
,
*
light_clinic_beauty_topic_queue
)
redis_client
.
rpush
(
light_clinic_beauty_topic_queue_grey_key
,
*
light_clinic_beauty_topic_grey_queue
)
print
(
"轻医美词更新的帖子队列长度:
%
s"
%
str
(
len
(
light_clinic_beauty_topic_queue
)))
print
(
"轻医美词更新的灰度帖子队列长度:
%
s"
%
str
(
len
(
light_clinic_beauty_topic_grey_queue
)))
light_clinic_beauty_qa_queue
=
search_qa_by_match_phrase
(
light_clinic_beauty
)
light_clinic_beauty_qa_grey_queue
=
search_qa_by_match_phrase
(
light_clinic_beauty
,
version
=
1
)
...
...
@@ -236,4 +237,4 @@ if __name__ == "__main__":
diary_queue
=
search_diary_by_match_phrase
(
light_clinic_beauty
,
city_tag_id
,
version
=
1
)
light_clinic_beauty_diary_queue
.
update
({
city_tag_id
:
json
.
dumps
(
diary_queue
)})
redis_client
.
hmset
(
light_clinic_beauty_diary_queue_key2
,
light_clinic_beauty_diary_queue
)
print
(
"轻医美词更新的日记队列长度:
%
s"
%
str
(
len
(
diary_queue
)))
print
(
"轻医美词更新的
灰度
日记队列长度:
%
s"
%
str
(
len
(
diary_queue
)))
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