소스 검색

标题改写增加视频号

luojunhui 3 달 전
부모
커밋
8e67bcf9e9
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      tasks/title_rewrite_task.py

+ 1 - 1
tasks/title_rewrite_task.py

@@ -154,7 +154,7 @@ class TitleRewriteTask:
             where bad_status = {const.ARTICLE_POSITIVE_STATUS} 
             where bad_status = {const.ARTICLE_POSITIVE_STATUS} 
                 and audit_status = {const.ARTICLE_AUDIT_PASSED_STATUS} 
                 and audit_status = {const.ARTICLE_AUDIT_PASSED_STATUS} 
                 and title_rewrite_status = {const.TITLE_REWRITE_INIT_STATUS}
                 and title_rewrite_status = {const.TITLE_REWRITE_INIT_STATUS}
-                and platform = 'hksp'
+                and platform in ('hksp', 'sph')
             limit {batch_size};
             limit {batch_size};
         """
         """
         res = self.db.fetch(query=sql, cursor_type=DictCursor)
         res = self.db.fetch(query=sql, cursor_type=DictCursor)