diff options
Diffstat (limited to 'python/bondallocation_email.py')
| -rw-r--r-- | python/bondallocation_email.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/python/bondallocation_email.py b/python/bondallocation_email.py index d1e42968..ba1b9bd8 100644 --- a/python/bondallocation_email.py +++ b/python/bondallocation_email.py @@ -59,8 +59,8 @@ if __name__ == "__main__": to_recipients=row.allocation_contacts if row.allocation_contacts else ("fyu@lmcg.com,"), - # to_recipients=("fyu@lmcg.com",), cc_recipients=cc_recipients, + reply_to=("NYOps@lmcg.com",), body=HTMLBody(body), attach=[ FileAttachment( @@ -69,4 +69,8 @@ if __name__ == "__main__": ) ], ) - d.execute("UPDATE bonds set emailed = True where id = %s", (row.tradeid,)) + d.execute( + "UPDATE bonds set emailed = True where id = %(tradeid)s", + {"tradeid": row.tradeid}, + ) + dawndb.commit() |
