diff options
Diffstat (limited to 'python/load_bbh_reports.py')
| -rw-r--r-- | python/load_bbh_reports.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/python/load_bbh_reports.py b/python/load_bbh_reports.py index b4a6d6e5..36849a92 100644 --- a/python/load_bbh_reports.py +++ b/python/load_bbh_reports.py @@ -99,8 +99,12 @@ def download_val_report(date): reports_dir = DAILY_DIR / str(date) / "Reports" sftp = SftpClient.from_creds("bbh") for f in sftp.client.listdir("frombbh"): - if f.split(".")[1].split("_")[0] == f"{date:%Y%m%d}": + if f.split(".")[1] == f"{date:%Y%m%d}": sftp.client.get(f"frombbh/{f}", localpath=reports_dir / f) + elif f.split(".")[1].split("_")[0] == f"{date:%Y%m%d}": + sftp.client.get( + f"frombbh/{f}", localpath=reports_dir / f"BBH_BOND.{date:%Y%m%d}.csv" + ) if __name__ == "__main__": |
