|
@@ -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
|
|
|
)
|