From 455b655759db7ada3c7af28629cb8af95cecbaee Mon Sep 17 00:00:00 2001 From: root Date: Sun, 30 Jan 2022 15:32:52 +0000 Subject: Rounding for user interface --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'main.py') diff --git a/main.py b/main.py index ca9ddcc..58d8291 100644 --- a/main.py +++ b/main.py @@ -36,7 +36,7 @@ def main_page(): # paramaterised location of template in 'templates' folder return render_template( "main.html", - actual_temp=boiler.temperature, + actual_temp=round(boiler.temperature,2), target_temp=boiler.target, forecast_temp=weather.temperature() ) -- cgit v1.2.3