Commit e8ea240b authored by 赵威's avatar 赵威

update field

parent 2d07aa95
...@@ -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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment