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
34128c99
Commit
34128c99
authored
Jul 23, 2020
by
赵威
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
get result
parent
91521090
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
main_portrait.py
src/main_portrait.py
+1
-1
portrait.py
src/utils/portrait.py
+2
-3
No files found.
src/main_portrait.py
View file @
34128c99
from
utils.portrait
import
user_portrait_tag3_get_unread_list
from
utils.portrait
import
user_portrait_tag3_get_
candidate_
unread_list
if
__name__
==
"__main__"
:
device_id
=
"androidid_a25a1129c0b38f7b"
...
...
src/utils/portrait.py
View file @
34128c99
...
...
@@ -73,13 +73,12 @@ def user_portrait_tag3_get_candidate_dict(device_id, content_type, latest=False)
return
{}
def
user_portrait_tag3_get_unread_list
(
device_id
,
content_type
):
def
user_portrait_tag3_get_
candidate_
unread_list
(
device_id
,
content_type
):
"""
device_id:
content_type: diary
return: []
"""
print
(
get_user_portrait_tag3_read_key_v2
(
device_id
,
content_type
))
read_list
,
t
=
get_user_portrait_tag3_read_key_v2
(
device_id
,
content_type
)
read_list
,
_
=
get_user_portrait_tag3_read_v2
(
device_id
,
content_type
)
candidate_list
=
list
(
user_portrait_tag3_get_candidate_key
(
device_id
,
content_type
)
.
values
())
return
get_n_unread_data_from_ids
(
candidate_list
,
500
,
read_list
)
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