diff options
Diffstat (limited to 'python')
| -rw-r--r-- | python/admin_cls_upload.py | 1 | ||||
| -rw-r--r-- | python/report_ops/services.py | 9 |
2 files changed, 5 insertions, 5 deletions
diff --git a/python/admin_cls_upload.py b/python/admin_cls_upload.py index 171b9709..c290bb6a 100644 --- a/python/admin_cls_upload.py +++ b/python/admin_cls_upload.py @@ -32,5 +32,6 @@ with conn.cursor() as c: service.upload( buf, dest.name, + fund, "CLS", ) diff --git a/python/report_ops/services.py b/python/report_ops/services.py index 361b594b..23090b8c 100644 --- a/python/report_ops/services.py +++ b/python/report_ops/services.py @@ -3,6 +3,7 @@ from serenitas.ops.headers import HEADERS from serenitas.utils.exchange import ExchangeMessage, FileAttachment from .headers import get_bny_headers +from .misc import _settlement_recipients class BNY(Service, service_name="BNY"): @@ -18,16 +19,14 @@ class BNY(Service, service_name="BNY"): cls.staging_queue.append(trade.to_bny(action)) @classmethod - def upload(cls, buf, dest, upload_type): + def upload(cls, buf, dest, fund, upload_type): super().upload(buf, dest, confirm=False) em = ExchangeMessage() em.send_email( f"BNY Upload Receipt {upload_type}", "", - to_recipients=( - "NYOPs@lmcg.com", - "Prim-ops@innocap.com", - ), + to_recipients=(_settlement_recipients[fund],), + cc_recipients=(_cc_recipients[fund]), attach=(FileAttachment(name=dest, content=buf),), ) |
