diff options
Diffstat (limited to 'python/report_ops/__main__.py')
| -rw-r--r-- | python/report_ops/__main__.py | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/python/report_ops/__main__.py b/python/report_ops/__main__.py index 104bafbb..53dc9773 100644 --- a/python/report_ops/__main__.py +++ b/python/report_ops/__main__.py @@ -94,18 +94,11 @@ if args.isosel_reports: logger.warning(e) if args.wire_reports: - for fund, custodians in _fund_custodians.items(): - for custodian in custodians: - report = Wire[ - ( - fund, - custodian, - ) - ] - try: - report.to_db(args.date) - except ValueError as e: - logger.warning(e) + for wire_report_cls in Wire._registry.values(): + try: + wire_report_cls.to_db(args.date) + except ValueError as e: + logger.warning(e) if args.send_to_custodians: for account in ( |
