Close figures
This commit is contained in:
parent
dbce381a71
commit
3593f2ecd9
4
wsgi.py
4
wsgi.py
@ -277,6 +277,8 @@ def tables(
|
|||||||
annotate_current=annotate_current,
|
annotate_current=annotate_current,
|
||||||
landesbez_str=landesbez_strs,
|
landesbez_str=landesbez_strs,
|
||||||
)
|
)
|
||||||
|
svg_string = convert_fig_to_svg(fig)
|
||||||
|
plt.close()
|
||||||
|
|
||||||
_print_as_html(df_state)
|
_print_as_html(df_state)
|
||||||
_print_as_html(df)
|
_print_as_html(df)
|
||||||
@ -285,7 +287,7 @@ def tables(
|
|||||||
"base.html",
|
"base.html",
|
||||||
tables="\n".join(output_str),
|
tables="\n".join(output_str),
|
||||||
timestamp=timestamp,
|
timestamp=timestamp,
|
||||||
image=convert_fig_to_svg(fig),
|
image=svg_string,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user