Commit a2f0356c authored by litaolemo's avatar litaolemo

update

parent fd24ed5f
......@@ -319,7 +319,7 @@ for res in sql_res:
# print("has device")
# print(type(card_id),card_id)
# print("has card_id")
session_pv = res.session_pv
# session_pv = res.session_pv
# card_id_set.update(card_id)
if cl_id in second_demands_tag_dict:
if int(card_id) in second_demands_tractate_dict:
......
......@@ -352,10 +352,10 @@ def get_user_post_from_mysql(sql):
tags_v3_count_dict = {}
second_demands_tractate_dict = {}
tags_v3_tractate_dict = {}
print(sql)
# print(sql)
sql_res = con_sql_doris_prod(sql)
for card_id in sql_res:
print(type(card_id[0]),card_id)
# print(type(card_id[0]),card_id)
es_res = get_tractate_tags_from_es(card_id[0],id_type='tractate')
second_demands_tractate_dict[card_id[0]] = es_res["_source"]["second_demands"]
tags_v3_tractate_dict[card_id[0]] = es_res["_source"]["tags_v3"]
......
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