Commit 66072d4c authored by 赵威's avatar 赵威

Merge branch 'offic' into 'master'

update field

See merge request !78
parents 8cee2e48 94e086b7
...@@ -261,10 +261,10 @@ def update_tag3_user_portrait(cl_id): ...@@ -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_list = validate_order_df["business_tags_dict"].tolist()
validate_business_tags_score = merge_values(validate_business_tags_list) validate_business_tags_score = merge_values(validate_business_tags_list)
tmp_res = {} # tmp_res = {}
if (len(first_demands_score) == 0) and (len(first_solutions_score) == 0) and (len(first_positions_score) == 0) and ( # 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): # 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 = _get_all_by_projects(list(projects_score.keys()))
res = { res = {
"first_demands": first_demands_score, "first_demands": first_demands_score,
...@@ -278,8 +278,8 @@ def update_tag3_user_portrait(cl_id): ...@@ -278,8 +278,8 @@ def update_tag3_user_portrait(cl_id):
"paid_business_tags": paid_business_tags_score, "paid_business_tags": paid_business_tags_score,
"validate_business_tags": validate_business_tags_score "validate_business_tags": validate_business_tags_score
} }
if tmp_res: # if tmp_res:
res.update(tmp_res) # res.update(tmp_res)
key = "doris:user_portrait:tag3:device_id:" + str(cl_id) key = "doris:user_portrait:tag3:device_id:" + str(cl_id)
redis_client = get_redis_client() 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