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, 7 insertions, 10 deletions
diff --git a/python/report_ops/__main__.py b/python/report_ops/__main__.py
index 415cfe07..a577f415 100644
--- a/python/report_ops/__main__.py
+++ b/python/report_ops/__main__.py
@@ -80,21 +80,18 @@ if args.sma_positions:
except ValueError as e:
logger.warning(e)
-if args.cash_reports:
+if args.cash_reports or args.wire_reports:
em = ExchangeMessage()
for fund, custodians in _fund_custodians.items():
for custodian in custodians:
get_custodian_download_fun(custodian)(args.date, fund, em=em)
- cash_report = CashReport[custodian]
- cash_report.to_db(args.date, fund)
+ if args.cash_reports:
+ cash_report = CashReport[custodian]
+ cash_report.to_db(args.date, fund)
+ if args.wire_reports:
+ wire_report = WireReport[custodian]
+ wire_report.to_db(args.date, fund)
-if args.wire_reports:
- em = ExchangeMessage()
- for fund, custodians in _fund_custodians.items():
- for custodian in custodians:
- get_custodian_download_fun(custodian)(args.date, fund, em=em)
- wire_report = WireReport[custodian]
- wire_report.to_db(args.date, fund)
if args.isosel_reports:
for fund in (