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