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
e8ea240b
Commit
e8ea240b
authored
Jul 08, 2020
by
赵威
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update field
parent
2d07aa95
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
tag3_update_user_portrait_offline.py
eda/smart_rank/tag3_update_user_portrait_offline.py
+6
-3
No files found.
eda/smart_rank/tag3_update_user_portrait_offline.py
View file @
e8ea240b
...
@@ -140,8 +140,7 @@ def update_tag3_user_portrait(cl_id):
...
@@ -140,8 +140,7 @@ def update_tag3_user_portrait(cl_id):
second_solutions_score
=
merge_values
(
second_solutions_list
)
second_solutions_score
=
merge_values
(
second_solutions_list
)
first_positions_score
=
merge_values
(
first_positions_list
)
first_positions_score
=
merge_values
(
first_positions_list
)
second_positions_score
=
merge_values
(
second_positions_list
)
second_positions_score
=
merge_values
(
second_positions_list
)
projects_score
=
merge_values
(
projects_list
)
projects_score_tmp
=
merge_values
(
projects_list
)
print
(
projects_score
)
tmp
=
[
tmp
=
[
"不感兴趣"
,
"没有想法"
,
"八卦来了"
,
"颜值速报"
,
"医美审美干货"
,
"其他项目"
,
"网红颜值"
,
"少年之名"
,
"郑人予"
,
"热点课代表"
,
"私密"
,
"陈瑞泽"
,
"符仁杰"
,
"祖力亚尔"
,
"刘泽旭"
,
"陈家瑨"
"不感兴趣"
,
"没有想法"
,
"八卦来了"
,
"颜值速报"
,
"医美审美干货"
,
"其他项目"
,
"网红颜值"
,
"少年之名"
,
"郑人予"
,
"热点课代表"
,
"私密"
,
"陈瑞泽"
,
"符仁杰"
,
"祖力亚尔"
,
"刘泽旭"
,
"陈家瑨"
...
@@ -152,7 +151,11 @@ def update_tag3_user_portrait(cl_id):
...
@@ -152,7 +151,11 @@ def update_tag3_user_portrait(cl_id):
forbidden_lst
.
extend
(
tmp
)
forbidden_lst
.
extend
(
tmp
)
forbidden_set
=
set
(
forbidden_lst
)
forbidden_set
=
set
(
forbidden_lst
)
# TODO projects_score remove forbidden_set
projects_score
=
{}
for
(
k
,
v
)
in
projects_score_tmp
.
items
():
if
k
not
in
forbidden_set
:
projects_score
[
k
]
=
v
print
(
projects_score
)
res
=
{
res
=
{
"first_demands"
:
first_demands_score
,
"first_demands"
:
first_demands_score
,
...
...
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