Commit ba1348d0 authored by litaolemo's avatar litaolemo

update

parent c9429c4d
......@@ -408,8 +408,11 @@ AND page_name in ('search_home','search_home_more','search_home_welfare','search
device_df.show(1, False)
sql_res = device_df.collect()
for res in sql_res:
res_json = json.loads(res.query_words)
print(res_json, type(res_json))
try:
res_json = json.loads(res.query_words)
print(res_json, type(res_json))
except:
continue
for single_keyword in res_json:
data_count = data_dic.get(single_keyword)
if data_count:
......
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