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)