aboutsummaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
Diffstat (limited to 'python')
-rw-r--r--python/position_file_bowdst.py24
1 files changed, 12 insertions, 12 deletions
diff --git a/python/position_file_bowdst.py b/python/position_file_bowdst.py
index 779c5b75..a0d74cb0 100644
--- a/python/position_file_bowdst.py
+++ b/python/position_file_bowdst.py
@@ -14,18 +14,18 @@ def main(cob, fund, upload):
["bond", "future", "tranche", "ir_swaption", "cdx_swaption", "irs", "cdx"],
)
- # if upload:
- # client = Client.from_creds("hm_globeop")
- # client.put(buf, dest.name)
- # em = ExchangeMessage()
- # em.send_email(
- # subject=f"Position_files for Bowdoin Street as of {cob}",
- # body=f"Please see monthend positions for Bowdoin Street as of {cob}. They have been uploaded to the SFTP as well.",
- # to_recipients=_cc_recipients[fund],
- # cc_recipients=_cc_recipients[fund],
- # reply_to=_cc_recipients[fund],
- # attach=[FileAttachment(name=dest.name, content=buf)],
- # )
+ if upload:
+ client = Client.from_creds("hm_globeop")
+ client.put(buf, dest.name)
+ em = ExchangeMessage()
+ em.send_email(
+ subject=f"Position_files for Bowdoin Street as of {cob}",
+ body=f"Please see monthend positions for Bowdoin Street as of {cob}. They have been uploaded to the SFTP as well.",
+ to_recipients=_cc_recipients[fund],
+ cc_recipients=_cc_recipients[fund],
+ reply_to=_cc_recipients[fund],
+ attach=[FileAttachment(name=dest.name, content=buf)],
+ )
parser = argparse.ArgumentParser(