forked from rDrama/rDrama
master
parent
5af964cbbf
commit
5381d2b77d
|
@ -1186,7 +1186,7 @@ def chart(v):
|
||||||
comments={'comment_stats': comment_stats},
|
comments={'comment_stats': comment_stats},
|
||||||
)
|
)
|
||||||
|
|
||||||
return send_file(x)
|
return send_file("image.png")
|
||||||
|
|
||||||
|
|
||||||
def create_plot(**kwargs):
|
def create_plot(**kwargs):
|
||||||
|
@ -1240,7 +1240,4 @@ def multiple_plots(**kwargs):
|
||||||
comments_chart.legend(loc='upper left', frameon=True)
|
comments_chart.legend(loc='upper left', frameon=True)
|
||||||
|
|
||||||
plt.savefig("image.png")
|
plt.savefig("image.png")
|
||||||
plt.clf()
|
plt.clf()
|
||||||
|
|
||||||
if "pcmemes.net" in request.host: return upload_ibb(filepath="image.png")
|
|
||||||
else: return upload_imgur(filepath="image.png")
|
|
Loading…
Reference in New Issue