From dcbec17064a7731e28d977ce6c1b89aedb9c9039 Mon Sep 17 00:00:00 2001 From: Felix Blanke Date: Sun, 27 Aug 2023 23:30:43 +0200 Subject: [PATCH] Fix wrong name --- wsgi.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wsgi.py b/wsgi.py index 8425b77..7f75311 100644 --- a/wsgi.py +++ b/wsgi.py @@ -156,9 +156,9 @@ def plot( # Convert plot to SVG image imgdata = io.StringIO() fig.savefig(imgdata, format="svg") - svgImage.seek(0) # rewind the data + imgdata.seek(0) # rewind the data - return svgImage.read() + return imgdata.read() @app.route("/")