From 5381d2b77db2ae6400d07f85afe70fe276fadd65 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Fri, 10 Sep 2021 05:36:44 +0200 Subject: [PATCH] fd --- files/routes/admin.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/files/routes/admin.py b/files/routes/admin.py index 8eb9a4283e..0d5c4bfab1 100644 --- a/files/routes/admin.py +++ b/files/routes/admin.py @@ -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") \ No newline at end of file + plt.clf() \ No newline at end of file