windowdog 1 月之前
父節點
當前提交
6a8e9e362c
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/code/get_downloads_from_gmgn_pump.py

+ 2 - 2
src/code/get_downloads_from_gmgn_pump.py

@@ -148,14 +148,14 @@ async def handle_Downloads_gmgn_pump_file_timed():
         df.to_csv(f"/home/listen_from_browser/df_gmgn_pump_total.csv",  index = False  )
         
         
-        df_for_feishu   =df[df["save_timestamp"] ==df["save_timestamp"].min()].reset_index(drop=True)
+        df_for_feishu   =df[df["save_timestamp"] ==df["save_timestamp"].max()].reset_index(drop=True)
         df_for_feishu = df[df['age'].str.contains('h', case=False, na=False)].reset_index(drop=True)
         
         df_for_feishu['age'] = df_for_feishu['age'].str.replace('h', '', case=False)
         df_for_feishu["age"] = df_for_feishu["age"].astype(int)
         df_for_feishu = df_for_feishu[df_for_feishu["age"] <= 24].reset_index(drop=True)
        
-        df_for_feishu=df_for_feishu[ ['token_url', 'token_name', 'age', 'mc', 'holders'   ] ]
+        df_for_feishu=df_for_feishu[ ['token_url', 'token_name', 'age', 'mc', 'holders' ,'save_timestamp'  ] ]
         
 
         set_has_read_file = set(arr_csv_file)