Commit 5765ae54 authored by litaolemo's avatar litaolemo

update

parent f39d7a70
...@@ -26,7 +26,7 @@ def send_email(query_id_dict: Dict): ...@@ -26,7 +26,7 @@ def send_email(query_id_dict: Dict):
title_str = "关键词%s帖子内容审核" % search_keyword title_str = "关键词%s帖子内容审核" % search_keyword
body_str = """ body_str = """
问好: 问好:
新的query:{search_keyword}抓取内容需要审核,帖子号为\n 新的query:{search_keyword} 抓取内容需要审核,帖子号为\n
""".format(search_keyword=search_keyword, ) """.format(search_keyword=search_keyword, )
for tractate_id in query_id_dict[search_keyword]: for tractate_id in query_id_dict[search_keyword]:
body_str += str(tractate_id) + ", " body_str += str(tractate_id) + ", "
...@@ -115,6 +115,6 @@ def send_one_data_to_mysql(_id): ...@@ -115,6 +115,6 @@ def send_one_data_to_mysql(_id):
if __name__ == "__main__": if __name__ == "__main__":
# scan_es_to_mysql() scan_es_to_mysql()
send_one_data_to_mysql("zhihu_283857656_480262861") # send_one_data_to_mysql("zhihu_283857656_480262861")
# send_one_data_to_mysql("zhihu_65123027_648018097") # 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