From 94e086b7999a49819e394f7a03d5279c22d9c7ba Mon Sep 17 00:00:00 2001 From: zhaowei <zhaowei@igengmei.com> Date: Tue, 1 Dec 2020 10:35:52 +0800 Subject: [PATCH] update field --- eda/smart_rank/tag3_update_user_portrait_offline.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/eda/smart_rank/tag3_update_user_portrait_offline.py b/eda/smart_rank/tag3_update_user_portrait_offline.py index 843ed042..2720e3a5 100644 --- a/eda/smart_rank/tag3_update_user_portrait_offline.py +++ b/eda/smart_rank/tag3_update_user_portrait_offline.py @@ -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() -- 2.18.0