浏览代码

标题通过相关性分数逆序发布

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

+ 1 - 0
coldStartTasks/publish/publish_video_to_pq_for_audit.py

@@ -40,6 +40,7 @@ class PublishVideosForAudit(object):
             SELECT id, article_title, video_oss_path 
             FROM publish_single_video_source 
             WHERE audit_status = {const.VIDEO_AUDIT_INIT_STATUS} and bad_status = {const.TITLE_DEFAULT_STATUS}
+            ORDER BY score DESC
             LIMIT {rest_count};
             """
         response = self.db_client.fetch(sql, cursor_type=DictCursor)