Kaynağa Gözat

updateAccountV3.py

查询阅读率均值,增加is_delete判断
luojunhui 6 ay önce
ebeveyn
işleme
6d7c18ec58
1 değiştirilmiş dosya ile 2 ekleme ve 1 silme
  1. 2 1
      updateAccountV3.py

+ 2 - 1
updateAccountV3.py

@@ -41,7 +41,8 @@ class UpdateAccountInfoVersion3(object):
             SELECT 
             SELECT 
                 gh_id, position, read_rate_avg
                 gh_id, position, read_rate_avg
             FROM
             FROM
-                long_articles_read_rate;
+                long_articles_read_rate
+            WHERE is_delete = 0;
         """
         """
         result = self.lam.select(sql)
         result = self.lam.select(sql)
         account_read_rate_dict = {}
         account_read_rate_dict = {}