Browse Source

修改服务数据库为 official_articles_v2

罗俊辉 1 year ago
parent
commit
b6b6f629f0
1 changed files with 5 additions and 6 deletions
  1. 5 6
      routes/articleDBServer.py

+ 5 - 6
routes/articleDBServer.py

@@ -28,8 +28,6 @@ class ArticleSpider(object):
         """
         try:
             self.ghId = self.params['ghId']
-            # self.startTime = self.params['startTime']
-            # self.endTime = self.params['endTime']
             return None
         except Exception as e:
             return {
@@ -44,10 +42,11 @@ class ArticleSpider(object):
         :return:
         """
         sql = f"""
-        select accountName, updateTime 
-        from official_articles 
-        where ghId = '{self.ghId}' 
-        order by updateTime DESC;"""
+            select accountName, updateTime 
+            from official_articles_v2 
+            where ghId = '{self.ghId}' 
+            order by updateTime DESC;
+            """
         result = await self.mysql_client.async_select(sql)
         if result:
             account_name, update_time = result[0]