change time range

This commit is contained in:
赵敬皓 2023-08-24 09:48:51 +08:00
parent 341145dc47
commit 08cc653a8e
1 changed files with 1 additions and 1 deletions

View File

@ -67,7 +67,7 @@ def fetch_files(now:str):
if not os.path.exists(out_path):
wget.download(url, out=out_path)
logger.info(f"download file {out_path} finished")
end_date = start_date + dt.timedelta(hours=120)
end_date = start_date + dt.timedelta(hours=119)
time_range = pd.date_range(start_date+dt.timedelta(hours=8), end_date+dt.timedelta(hours=8), freq='H').astype(str).to_list()
return time_range, date