This commit is contained in:
Sebastien Trudel 2020-12-31 23:27:25 -05:00
parent e05a531f10
commit 4cdf07f35f
1 changed files with 4 additions and 4 deletions

View File

@ -22,9 +22,9 @@ emailp = config.get("config","test")
data2 = yf.download("CRSR VTI VOO DIS UI", period="1d")
print(data2.tail(1))
data2.head()
#print(data2.tail(1))
#data2.head()
Dayclose = data2["Close"].round(decimals=2)
recipients = ["sebastien.trudel@pirolian.com"]
emaillist = [elem.strip().split(',') for elem in recipients]
@ -40,7 +40,7 @@ html = """\
{0}
</body>
</html>
""".format(data2.to_html())
""".format(Dayclose.to_html())
part1 = MIMEText(html, "html")
msg.attach(part1)