From c6d7d4e28d190c51c6d49db43b3ad65786807242 Mon Sep 17 00:00:00 2001 From: Calvin Owens Date: Sun, 2 Apr 2023 17:19:53 -0700 Subject: [PATCH] Allow setting x/y sizes of graphs in GET requests --- backend/http_ui.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/backend/http_ui.py b/backend/http_ui.py index ae51805..6c4ba96 100755 --- a/backend/http_ui.py +++ b/backend/http_ui.py @@ -126,11 +126,11 @@ def do_GET(self): }.get(extension, ("svg", "image/svg+xml")) if ttype == "dumb": - x = 95 - y = 32 + x = querydict.get("x", 95) + y = querydict.get("y", 32) else: - x = 800 - y = 800 + x = querydict.get("x", 800) + y = querydict.get("y", 800) plotdata = { "temp": self.gnuplot_temperature,