diff options
Diffstat (limited to 'python/report_ops/utils.py')
| -rw-r--r-- | python/report_ops/utils.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/python/report_ops/utils.py b/python/report_ops/utils.py index 5b0c14a7..b1135810 100644 --- a/python/report_ops/utils.py +++ b/python/report_ops/utils.py @@ -5,7 +5,7 @@ from typing import Literal, ClassVar import datetime import csv from serenitas.ops.trade_dataclasses import Deal -from serenitas.utils.exchange import ExchangeMessage +from serenitas.utils.exchange import ExchangeMessage, FileAttachment from serenitas.utils.remote import SftpClient from exchangelib import HTMLBody from tabulate import tabulate @@ -515,7 +515,7 @@ class QuantifiMonitor( num_format=[], ): @classmethod - def email(cls, filename, errors): + def email(cls, filename, errors, buf): if not cls._staging_queue: return cls._em.send_email( @@ -539,6 +539,7 @@ class QuantifiMonitor( "ghorel@lmcg.com", "etsui@lmcg.com", ), + attach=[FileAttachment(name=filename + ".xml", content=buf)], ) |
