Przeglądaj źródła

兼容 aigc 系统出现账号名称为空的情况

luojunhui 1 tydzień temu
rodzic
commit
5026135e4c
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      cal_account_read_rate_avg_daily.py

+ 1 - 1
cal_account_read_rate_avg_daily.py

@@ -86,7 +86,7 @@ def cal_account_read_rate(article_list, fans_dict) -> DataFrame:
         if fans > const.MIN_FANS:
             line['readRate'] = line['show_view_count'] / fans if fans else 0
             response.append(line)
-    return DataFrame(response, columns=['ghId', 'accountName', 'ItemIndex', 'show_view_count', 'publish_timestamp', 'fans', 'readRate'])
+    return DataFrame(response, columns=['ghId', 'accountName', 'ItemIndex', 'show_view_count', 'publish_timestamp', 'readRate'])
 
 
 def cal_avg_account_read_rate(df, gh_id, index, dt) -> dict: