|
@@ -37,7 +37,7 @@ class ProcessDeal(object):
|
|
for content_id in content_ids:
|
|
for content_id in content_ids:
|
|
cil.append(content_id[0])
|
|
cil.append(content_id[0])
|
|
content_ids_tuple = str(cil).replace("[", "(").replace("]", ")")
|
|
content_ids_tuple = str(cil).replace("[", "(").replace("]", ")")
|
|
- if len(content_ids_tuple) > 0:
|
|
|
|
|
|
+ if len(content_ids_tuple) > 3:
|
|
select_sql = f"""
|
|
select_sql = f"""
|
|
SELECT trace_id, content_id, gh_id, article_title, article_text, content_status, process_times
|
|
SELECT trace_id, content_id, gh_id, article_title, article_text, content_status, process_times
|
|
FROM {db_article}
|
|
FROM {db_article}
|
|
@@ -285,7 +285,6 @@ class ProcessDeal(object):
|
|
:return:
|
|
:return:
|
|
"""
|
|
"""
|
|
task_list = await self.get_task()
|
|
task_list = await self.get_task()
|
|
- print(task_list)
|
|
|
|
task_dict = {}
|
|
task_dict = {}
|
|
for task in task_list:
|
|
for task in task_list:
|
|
key = task['content_id']
|
|
key = task['content_id']
|