Jelajahi Sumber

计算阅读均值优化

luojunhui 1 bulan lalu
induk
melakukan
687edf4c94
1 mengubah file dengan 2 tambahan dan 2 penghapusan
  1. 2 2
      applications/utils/fetch_info_from_aigc.py

+ 2 - 2
applications/utils/fetch_info_from_aigc.py

@@ -46,8 +46,8 @@ def fetch_account_fans(db_client, start_date: str) -> Dict:
         SELECT t1.date_str, t1.fans_count, t2.gh_id
         SELECT t1.date_str, t1.fans_count, t2.gh_id
         FROM datastat_wx t1 JOIN publish_account t2 ON t1.account_id = t2.id
         FROM datastat_wx t1 JOIN publish_account t2 ON t1.account_id = t2.id
         WHERE t2.channel = 5
         WHERE t2.channel = 5
-        AND t1.fans_count > 0
-        AND t1.date_str >= '{start_date}' 
+            AND t2.status = 1 
+            AND t1.date_str >= '{start_date}' 
         ORDER BY t1.date_str;
         ORDER BY t1.date_str;
         """
         """
     result = db_client.fetch(sql)
     result = db_client.fetch(sql)