Browse Source

Merge branch '2024-12-16-add-bot-when-kimi-fails-improve' of Server/title_with_video into 2024-09-23newDbTasks

luojunhui 4 months ago
parent
commit
2999be3cd0
1 changed files with 11 additions and 2 deletions
  1. 11 2
      tasks/new_contentId_task.py

+ 11 - 2
tasks/new_contentId_task.py

@@ -852,12 +852,21 @@ class NewContentIdTask(object):
                         NewContentIdTaskConst.TASK_INIT_STATUS
                     )
                 )
+                # 查询出该content_id所对应的标题
+                select_sql = f"""
+                    SELECT article_title
+                    FROM {self.article_text_table}
+                    WHRER content_id = '{content_id}';
+                """
+                result = await self.mysql_client.async_select(select_sql)
                 bot(
                     title="KIMI 处理失败",
                     detail={
                         "content_id": content_id,
-                        "affected_rows": affected_rows
-                    }
+                        "affected_rows": affected_rows,
+                        "article_title": result[0][0]
+                    },
+                    mention=False
                 )
 
     async def process_task(self, params):