aboutsummaryrefslogtreecommitdiffstats
path: root/python/report_ops/custodians.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/report_ops/custodians.py')
-rw-r--r--python/report_ops/custodians.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/python/report_ops/custodians.py b/python/report_ops/custodians.py
index ca03eccf..90e081d5 100644
--- a/python/report_ops/custodians.py
+++ b/python/report_ops/custodians.py
@@ -127,9 +127,9 @@ def download_nt_reports(date, fund, em):
fp.read(), passphrase="Serenitas1"
)
if "custodian" in verify_result.file_name:
- fname = "NtWires_{fund}"
+ fname = "NT_WIRE_{fund}"
elif "cash" in verify_result.filename:
- fname = "NtCash_{fund}"
+ fname = "NT_CASH_{fund}"
else:
pass
p = dest / f"{fname}_{message_time:%Y%m%d%H%M}.csv"
@@ -154,9 +154,9 @@ def download_umb_reports(date, fund, em):
dest = get_dir(date, archived=False)
dest.mkdir(exist_ok=True, parents=True)
if attach.name.startswith("cash_balances_umb"):
- p = dest / f"UmbCash_{ts:%Y%m%d%H%M}.xlsx"
+ p = dest / f"UMB_CASH_{fund}_{ts:%Y%m%d%H%M}.xlsx"
elif attach.name.startswith("umb_serenitas_wires"):
- p = dest / f"UmbWires_{ts:%Y%m%d%H%M}.xlsx"
+ p = dest / f"UMB_WIRE_{fund}_{ts:%Y%m%d%H%M}.xlsx"
else:
pass
if not p.exists():
@@ -214,7 +214,7 @@ def download_gstx_reports(date, fund):
raise ValueError(f"No Gstx report {fund}:{date}")
-def get_custodian_download_function(custodian):
+def get_custodian_download_fun(custodian):
match custodian:
case "SCOTIA":
return download_scotia_reports