master
Aevann1 2021-09-10 05:36:44 +02:00
parent 5af964cbbf
commit 5381d2b77d
1 changed files with 2 additions and 5 deletions

View File

@ -1186,7 +1186,7 @@ def chart(v):
comments={'comment_stats': comment_stats},
)
return send_file(x)
return send_file("image.png")
def create_plot(**kwargs):
@ -1240,7 +1240,4 @@ def multiple_plots(**kwargs):
comments_chart.legend(loc='upper left', frameon=True)
plt.savefig("image.png")
plt.clf()
if "pcmemes.net" in request.host: return upload_ibb(filepath="image.png")
else: return upload_imgur(filepath="image.png")
plt.clf()