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
         )