Parcourir la source

nlp-api-improve

luojunhui il y a 3 mois
Parent
commit
5616b5c22f
1 fichiers modifiés avec 3 ajouts et 1 suppressions
  1. 3 1
      coldStartTasks/crawler/wechat/article_association.py

+ 3 - 1
coldStartTasks/crawler/wechat/article_association.py

@@ -61,7 +61,9 @@ class ArticleAssociationCrawler(object):
         level = 'autoArticlePoolLevel1' 表示头条
         """
         sql = f"""
-        select distinct title from article_pool_promotion_source where level = 'autoArticlePoolLevel1' and status = 1 and deleted = 0;
+            select distinct title 
+            from article_pool_promotion_source 
+            where level = 'autoArticlePoolLevel1' and status = 1 and deleted = 0;
         """
         mysql_response = self.db_client.fetch(query=sql)
         title_list = [i[0] for i in mysql_response]