فهرست منبع

Merge branch 'feature/2025-10-09-bugfix' of luojunhui/LongArticlesJob into master

luojunhui 1 هفته پیش
والد
کامیت
1621ebbbdb
1فایلهای تغییر یافته به همراه7 افزوده شده و 1 حذف شده
  1. 7 1
      tasks/data_tasks/fwh_data_recycle.py

+ 7 - 1
tasks/data_tasks/fwh_data_recycle.py

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