Commit 7d147a4b authored by 赵威's avatar 赵威

get data

parent e2cf6706
......@@ -236,12 +236,11 @@ def update_tag3_user_portrait(cl_id):
if k not in forbidden_set:
projects_score[k] = v
print(list(projects_score.keys()))
a = _get_all_by_projects(list(projects_score.keys()))
print(a)
if (len(first_demands_score) == 0) and (len(first_solutions_score) == 0) and (len(first_positions_list) == 0):
pass
tmp_res = {}
# if (len(first_demands_score) == 0) and (len(first_solutions_score) == 0) and (len(first_positions_list) == 0):
tmp_res = _get_all_by_projects(list(projects_score.keys()))
print(tmp_res)
res = {
"first_demands": first_demands_score,
......@@ -254,6 +253,11 @@ def update_tag3_user_portrait(cl_id):
}
print(res)
if tmp_res:
res.update(tmp_res)
print(res)
key = "doris:user_portrait:tag3:device_id:" + str(cl_id)
redis_client = redis.StrictRedis.from_url("redis://:ReDis!GmTx*0aN9@172.16.40.173:6379")
......
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