Able to output charts over discord now

This commit is contained in:
socks 2021-03-17 14:53:43 +00:00
parent dc98f04311
commit 900f812621

View file

@ -94,6 +94,5 @@ def generate_chart(ticker, history):
labels={"Open": "Price Per Share"},
)
img_bytes = io.BytesIO()
img_bytes = plotly.io.to_image(fig, format="png")
return img_bytes
return io.BytesIO(img_bytes)