Commit 2d842c77 authored by litaolemo's avatar litaolemo

update

parent 76519e1f
...@@ -343,8 +343,8 @@ def get_user_post_from_mysql(sql): ...@@ -343,8 +343,8 @@ def get_user_post_from_mysql(sql):
tags_v3_count_dict = {} tags_v3_count_dict = {}
sql_res = con_sql_doris_prod(sql) sql_res = con_sql_doris_prod(sql)
for card_id in sql_res: for card_id in sql_res:
print(type(card_id),card_id) print(type(card_id[0]),card_id)
card_id_list.append(card_id[0]) card_id_list.append(str(card_id[0]))
es_res = get_tractate_tags_from_es(card_id[0]) es_res = get_tractate_tags_from_es(card_id[0])
for position in es_res["_source"]["second_demands"]: for position in es_res["_source"]["second_demands"]:
if position in second_demands_count_dict: if position in second_demands_count_dict:
......
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