Commit 94e086b7 authored by 赵威's avatar 赵威

update field

parent a0b5a028
......@@ -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()
......
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