aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--python/bondallocation_email.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/python/bondallocation_email.py b/python/bondallocation_email.py
index c01c74b7..febfa103 100644
--- a/python/bondallocation_email.py
+++ b/python/bondallocation_email.py
@@ -35,12 +35,9 @@ if __name__ == "__main__":
subject = (
f"LMCG - Trade Allocations - TD {row.trade_date} - {row.counterparty}"
)
- cc_recipients = ("fyu@lmcg.com",)
- # allocations = "<br>".join(
- # [f"- {row.notional:,.0f} to {alert[row.fund]}" for row in d]
- # )
+ cc_recipients = ("fyu@lmcg.com", "NYOps@lmcg.com")
allocations = [
- "<li>" + f"- {row.notional:,.0f} to {alert[row.fund]}" + "</li>"
+ "<li>" + f" {row.notional:,.0f} to {alert[row.fund]}" + "</li>"
for row in d
]
buf = StringIO()
@@ -70,3 +67,4 @@ if __name__ == "__main__":
)
],
)
+ d.execute("UPDATE bonds set emailed = True where id = %s", (row.tradeid,))