Skip to content

Commit

Permalink
Allow setting x/y sizes of graphs in GET requests
Browse files Browse the repository at this point in the history
  • Loading branch information
jcalvinowens committed Mar 12, 2024
1 parent a2d94e7 commit c6d7d4e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions backend/http_ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit c6d7d4e

Please sign in to comment.