Commit 75629597 authored by litaolemo's avatar litaolemo

update

parent 9afe0968
......@@ -154,7 +154,7 @@ def push_data_to_user(res_data: Dict) -> Dict:
# 替换图片
content = res_data.get("content")
if content:
for img_url in res_data["img_list"]:
for img_url in qiniu_img_dict:
# print(qiniu_img_list[count][0])
content = content.replace(img_url, qiniu_img_dict[img_url][0])
res_data["qiniu_img_list"] = list(qiniu_img_dict.values())
......@@ -171,8 +171,7 @@ def write_data_into_mysql(res_data: Dict, user_id_list: List):
cur = conn.cursor()
now_str = datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S")
# 清洗数据为可以入库的格式
import pdb
pdb.set_trace()
data = push_data_to_user(res_data)
if not data.get("content"):
return None
......
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