|
@@ -34,8 +34,18 @@ class Const:
|
|
|
"gh_d4dffc34ac39",
|
|
"gh_d4dffc34ac39",
|
|
|
"gh_c69776baf2cd",
|
|
"gh_c69776baf2cd",
|
|
|
"gh_9877c8541764",
|
|
"gh_9877c8541764",
|
|
|
|
|
+ "gh_ac43e43b253b",
|
|
|
|
|
+ "gh_93e00e187787",
|
|
|
|
|
+ "gh_080bb43aa0dc",
|
|
|
]
|
|
]
|
|
|
|
|
|
|
|
|
|
+ # NOT USED SERVER ACCOUNT
|
|
|
|
|
+ NOT_USED_SERVER_ACCOUNT = {
|
|
|
|
|
+ "gh_84e744b16b3a",
|
|
|
|
|
+ "gh_5855bed97938",
|
|
|
|
|
+ "gh_61a72b720de3"
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
# 文章状态
|
|
# 文章状态
|
|
|
# 记录默认状态
|
|
# 记录默认状态
|
|
|
DEFAULT_STATUS = 0
|
|
DEFAULT_STATUS = 0
|
|
@@ -523,7 +533,7 @@ class RecycleFwhDailyPublishArticlesTask(Const):
|
|
|
fetch_response = await self.pool.async_fetch(
|
|
fetch_response = await self.pool.async_fetch(
|
|
|
query=fetch_query, db_name="piaoquan_crawler"
|
|
query=fetch_query, db_name="piaoquan_crawler"
|
|
|
)
|
|
)
|
|
|
- gh_id_list = [i["gzh_id"] for i in fetch_response]
|
|
|
|
|
|
|
+ gh_id_list = [i["gzh_id"] for i in fetch_response if i["gzh_id"] not in self.NOT_USED_SERVER_ACCOUNT]
|
|
|
return gh_id_list
|
|
return gh_id_list
|
|
|
|
|
|
|
|
async def get_stat_published_articles(self, gh_id):
|
|
async def get_stat_published_articles(self, gh_id):
|