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
94e086b7
Commit
94e086b7
authored
Dec 01, 2020
by
赵威
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update field
parent
a0b5a028
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
tag3_update_user_portrait_offline.py
eda/smart_rank/tag3_update_user_portrait_offline.py
+6
-6
No files found.
eda/smart_rank/tag3_update_user_portrait_offline.py
View file @
94e086b7
...
...
@@ -261,10 +261,10 @@ def update_tag3_user_portrait(cl_id):
validate_business_tags_list
=
validate_order_df
[
"business_tags_dict"
]
.
tolist
()
validate_business_tags_score
=
merge_values
(
validate_business_tags_list
)
tmp_res
=
{}
if
(
len
(
first_demands_score
)
==
0
)
and
(
len
(
first_solutions_score
)
==
0
)
and
(
len
(
first_positions_score
)
==
0
)
and
(
len
(
second_demands_score
)
==
0
)
and
(
len
(
second_solutions_score
)
==
0
)
and
(
len
(
second_positions_score
)
==
0
):
tmp_res
=
_get_all_by_projects
(
list
(
projects_score
.
keys
()))
#
tmp_res = {}
#
if (len(first_demands_score) == 0) and (len(first_solutions_score) == 0) and (len(first_positions_score) == 0) and (
#
len(second_demands_score) == 0) and (len(second_solutions_score) == 0) and (len(second_positions_score) == 0):
#
tmp_res = _get_all_by_projects(list(projects_score.keys()))
res
=
{
"first_demands"
:
first_demands_score
,
...
...
@@ -278,8 +278,8 @@ def update_tag3_user_portrait(cl_id):
"paid_business_tags"
:
paid_business_tags_score
,
"validate_business_tags"
:
validate_business_tags_score
}
if
tmp_res
:
res
.
update
(
tmp_res
)
#
if tmp_res:
#
res.update(tmp_res)
key
=
"doris:user_portrait:tag3:device_id:"
+
str
(
cl_id
)
redis_client
=
get_redis_client
()
...
...
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