luojunhui 3 月之前
父节点
当前提交
5d641451c2
共有 1 个文件被更改,包括 1 次插入3 次删除
  1. 1 3
      coldStartTasks/ai_pipeline/video_to_text.py

+ 1 - 3
coldStartTasks/ai_pipeline/video_to_text.py

@@ -84,9 +84,7 @@ class GenerateTextFromVideo(object):
             from video_content_understanding 
             where file_state = 'PROCESSING' and upload_status = {const.SUCCESS_STATUS};
         """
-        fetch_response = self.db.fetch(query=select_query, cursor_type=DictCursor)[0][
-            "processing_count"
-        ]
+        fetch_response = self.db.fetch(query=select_query, cursor_type=DictCursor)
         processing_task_num = (
             fetch_response[0]["processing_count"] if fetch_response else 0
         )