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__.py26
1 files changed, 2 insertions, 24 deletions
diff --git a/python/report_ops/__main__.py b/python/report_ops/__main__.py
index ac8ad764..4bc1a4da 100644
--- a/python/report_ops/__main__.py
+++ b/python/report_ops/__main__.py
@@ -9,9 +9,9 @@ from serenitas.analytics.exceptions import MissingDataError
from .sma import SMA
from .cash import CashReport
+from .wires import WireReport
from .admin import CitcoReport
-# from .wires import WireReport
from .custodians import upload_to_custodian, get_custodian_download_fun
from .utils import notify_payment_settlements, notify_fx_hedge
from .misc import _fund_custodians
@@ -87,34 +87,12 @@ if args.cash_reports or args.wire_reports:
if args.cash_reports:
Report = CashReport
else:
- pass
- # Report = WireReport
+ Report = WireReport
for fund, custodians in _fund_custodians.items():
for custodian in custodians:
get_custodian_download_fun(custodian)(args.date, fund, em=em)
report = Report[custodian](args.date, fund)
report.commit()
- # cash_report = CashReport[custodian]
- # try:
- # for row in cash_report.yield_rows(args.date, fund):
- # cash = cash_report.from_report_line(
- # row | {"fund": fund, "knowledge_date": args.date}
- # )
- # cash.stage()
- # cash_report.commit()
- # cash_report.clear()
- # except (MissingDataError, RuntimeError) as e:
- # logger.warning(e)
- # if args.wire_reports:
- # wire_report = WireReport[custodian]
- # try:
- # for row in wire_report.yield_rows(args.date, fund):
- # wire = wire_report.from_report_line(row | {"fund": fund})
- # wire.stage()
- # wire_report.commit()
- # wire_report.clear()
- # except (MissingDataError, RuntimeError) as e:
- # logger.warning(e)
if args.isosel_reports:
for fund in ("ISOSEL",):