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__.py17
1 files changed, 5 insertions, 12 deletions
diff --git a/python/report_ops/__main__.py b/python/report_ops/__main__.py
index 856fe928..01cfef0e 100644
--- a/python/report_ops/__main__.py
+++ b/python/report_ops/__main__.py
@@ -74,18 +74,11 @@ if args.sma_positions:
logger.warning(e)
if args.cash_reports:
- for fund, custodians in _fund_custodians.items():
- for custodian in custodians:
- report = CashReport[
- (
- fund,
- custodian,
- )
- ](args.date)
- try:
- report.to_db()
- except ValueError as e:
- logger.warning(e)
+ for cash_report_cls in CashReport._registry.values():
+ try:
+ cash_report_cls(args.date).to_db()
+ except ValueError as e:
+ logger.warning(e)
if args.isosel_reports:
for fund in ("ISOSEL",):