Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
gm_strategy_cvr
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
gm_strategy_cvr
Commits
b5a63f3c
Commit
b5a63f3c
authored
Jul 23, 2020
by
赵威
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update key
parent
d49d0e4b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
main_portrait.py
src/main_portrait.py
+3
-3
No files found.
src/main_portrait.py
View file @
b5a63f3c
...
...
@@ -8,8 +8,8 @@ def user_portrait_scan_info():
try
:
round
=
0
all_count
=
0
#
keys = "doris:user_portrait:tag3:device_id:*"
keys
=
"doris:user_portrait:tag3:candidate:diary:device_id:*"
keys
=
"doris:user_portrait:tag3:device_id:*"
#
keys = "doris:user_portrait:tag3:candidate:diary:device_id:*"
cur
,
results
=
redis_client2
.
scan
(
0
,
keys
,
3000
)
while
cur
!=
0
:
round
+=
1
...
...
@@ -19,7 +19,7 @@ def user_portrait_scan_info():
key
=
str
(
key
,
"utf-8"
)
device_id
=
key
.
split
(
":"
)[
-
1
]
print
(
device_id
)
print
(
user_portrait_tag3_get_candidate_unread_list
(
device_id
,
"diary"
)[:
10
])
#
print(user_portrait_tag3_get_candidate_unread_list(device_id, "diary")[:10])
all_count
+=
1
# user_portrait_get_empty_candidates(device_id)
...
...
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