aboutsummaryrefslogtreecommitdiffstats
path: root/python/report_ops/custodians.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/report_ops/custodians.py')
-rw-r--r--python/report_ops/custodians.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/python/report_ops/custodians.py b/python/report_ops/custodians.py
index d7c81888..8eae92ce 100644
--- a/python/report_ops/custodians.py
+++ b/python/report_ops/custodians.py
@@ -10,9 +10,10 @@ from typing import ClassVar
from dataclasses import dataclass
-def upload_to_custodian(account, trade_date, conn, upload, em):
+def upload_to_custodian(account, trade_date, upload, em):
_service = {"BBH": "BRINKER", "UMB": "UMB"}
custodian = Service[_service[account]]
+ conn = BondDeal._conn
with conn.cursor() as c, conn.cursor() as d:
c.execute(
"SELECT * FROM bond_trades WHERE trade_date=%s AND account=%s",