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