aboutsummaryrefslogtreecommitdiffstats
path: root/python/report_ops/__main__.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/report_ops/__main__.py')
-rw-r--r--python/report_ops/__main__.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/python/report_ops/__main__.py b/python/report_ops/__main__.py
index ce712745..d91e788c 100644
--- a/python/report_ops/__main__.py
+++ b/python/report_ops/__main__.py
@@ -7,7 +7,7 @@ from .sma import SMA
from .cash import CashReport
from .admin import CitcoReport
from .wires import Wire
-from .custodians import upload_to_custodian
+from .custodians import upload_to_custodian, get_custodian_download_fun
from .utils import notify_payment_settlements, notify_fx_hedge
from .misc import _fund_custodians
@@ -81,7 +81,9 @@ if args.cash_reports:
for fund, custodians in _fund_custodians.items():
for custodian in custodians:
try:
- cash_report = CashReport[(fund, custodian)](args.date).to_db()
+ get_custodian_download_fun(custodian).download_reports(args.date, fund)
+ cash_report = CashReport[custodian]
+ cash_report.to_db(args.date, fund)
except ValueError as e:
logger.warning(e)