luojunhui 3 ماه پیش
والد
کامیت
1aa2f6a3db
1فایلهای تغییر یافته به همراه4 افزوده شده و 1 حذف شده
  1. 4 1
      coldStartTasks/multi_modal/generate_text_from_video.py

+ 4 - 1
coldStartTasks/multi_modal/generate_text_from_video.py

@@ -125,7 +125,10 @@ class GenerateTextFromVideo(object):
                 from video_content_understanding t1
                 join publish_single_video_source t2
                 on t1.content_trace_id = t2.content_trace_id
-                where t1.upload_status = {const.INIT_STATUS} and t2.video_pool_audit_status = {const.AUDIT_SUCCESS_STATUS} and t2.bad_status = 0
+                where t1.upload_status = {const.INIT_STATUS} 
+                    and t2.video_pool_audit_status = {const.AUDIT_SUCCESS_STATUS} 
+                    and t2.bad_status = 0
+                order by t2.flow_pool_level
                 limit {rest_video_count};
             """
             task_list = self.db.fetch(sql, cursor_type=DictCursor)