Commit ebd80175 authored by litaolemo's avatar litaolemo

update

parent 96ecd95d
......@@ -103,11 +103,13 @@ def send_one_data_to_mysql(_id):
if tractate_id:
rds.sadd("article_id_list", res["_id"])
search_word = data["search_word"]
if not query_id_dict.get(search_word):
query_id_dict[search_word] = {}
query_id_dict[search_word][tractate_id] = 1
send_email(query_id_dict)
if __name__ == "__main__":
# scan_es_to_mysql()
# send_one_data_to_mysql("zhihu_283857656_480262861")
send_one_data_to_mysql("zhihu_65123027_648018097")
send_one_data_to_mysql("zhihu_283857656_480262861")
# send_one_data_to_mysql("zhihu_65123027_648018097")
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