forked from MarseyWorld/MarseyWorld
master
parent
5af964cbbf
commit
5381d2b77d
|
@ -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()
|
Loading…
Reference in New Issue