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
091dd119
Commit
091dd119
authored
Jul 23, 2020
by
赵威
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update field
parent
b5a63f3c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
main_portrait.py
src/main_portrait.py
+4
-5
No files found.
src/main_portrait.py
View file @
091dd119
import
datetime
from
utils.cache
import
redis_client
2
from
utils.cache
import
redis_client
4
from
utils.portrait
import
user_portrait_tag3_get_candidate_unread_list
...
...
@@ -8,13 +8,12 @@ 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:*"
cur
,
results
=
redis_client2
.
scan
(
0
,
keys
,
3000
)
keys
=
"doris:user_portrait:tag3:candidate:diary:device_id:*"
cur
,
results
=
redis_client4
.
scan
(
0
,
keys
,
3000
)
while
cur
!=
0
:
round
+=
1
print
(
"round: "
+
str
(
round
))
cur
,
results
=
redis_client
2
.
scan
(
cur
,
keys
,
3000
)
cur
,
results
=
redis_client
4
.
scan
(
cur
,
keys
,
3000
)
for
key
in
results
:
key
=
str
(
key
,
"utf-8"
)
device_id
=
key
.
split
(
":"
)[
-
1
]
...
...
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