Commit d5fa1037 authored by 李宗熹's avatar 李宗熹

保存图片后清除缓存

parent 84c48d3f
...@@ -416,6 +416,7 @@ def draw_index_combination_chart(compare_data): ...@@ -416,6 +416,7 @@ def draw_index_combination_chart(compare_data):
# return return_compare_img # return return_compare_img
filename = str(uuid.uuid4()) + '.png' filename = str(uuid.uuid4()) + '.png'
fig.savefig(temp_img_save_folder + filename, format='png', bbox_inches='tight') fig.savefig(temp_img_save_folder + filename, format='png', bbox_inches='tight')
plt.clf()
return_path = template_folder + filename return_path = template_folder + filename
return return_path return return_path
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment