Explorar o código

计算阅读均值优化

luojunhui hai 1 mes
pai
achega
687edf4c94
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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
         FROM datastat_wx t1 JOIN publish_account t2 ON t1.account_id = t2.id
         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;
         """
     result = db_client.fetch(sql)