Commit 8c715c04 authored by litaolemo's avatar litaolemo

update

parent f4585e73
......@@ -252,7 +252,6 @@ def push_data_to_user(res_data: Dict) -> Dict:
:return:
"""
qiniu_img_list = []
content = ""
if res_data["img_list"]:
for img_url in res_data["img_list"]:
try:
......@@ -270,6 +269,7 @@ def push_data_to_user(res_data: Dict) -> Dict:
res_data["qiniu_img_list"] = qiniu_img_list
if "http://t.cn/" in res_data["title"]:
res_data["title"] = res_data["title"].split("http://t.cn/")[0]
res_data["content"] = res_data["title"]
elif res_data["platform"] == "douban":
content = res_data.get("content")
if content:
......@@ -391,7 +391,7 @@ def task_main():
for res_data in scan_from_redis(rules_list):
tractate_id = write_data_into_mysql(res_data)
try:
print(res_data)
print("line394",res_data)
if res_data["level"] >= 1 and tractate_id:
title_str = res_data["platform"] + "帖子内容审核"
body_str = """
......
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