|
@@ -27,6 +27,12 @@ class FwhDataRecycle:
|
|
|
|
|
|
ARTICLE_ILLEGAL_CODE = 25012
|
|
|
|
|
|
+ NOT_USED_SERVER_ACCOUNT = {
|
|
|
+ "gh_84e744b16b3a",
|
|
|
+ "gh_5855bed97938",
|
|
|
+ "gh_61a72b720de3"
|
|
|
+ }
|
|
|
+
|
|
|
def __init__(self):
|
|
|
self.denet_client = DatabaseConnector(denet_config)
|
|
|
self.denet_client.connect()
|
|
@@ -44,7 +50,7 @@ class FwhDataRecycle:
|
|
|
select gzh_id from article_gzh_developer;
|
|
|
"""
|
|
|
fetch_response = self.piaoquan_client.fetch(fetch_query, cursor_type=DictCursor)
|
|
|
- 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]
|
|
|
# gh_id_list = ['gh_5e543853d8f0']
|
|
|
return gh_id_list
|
|
|
|