From 13c292f1728353fcea9aee8817dd1c8e7fd1106b Mon Sep 17 00:00:00 2001 From: Antoine Goutenoir Date: Thu, 7 Nov 2019 07:54:58 +0100 Subject: [PATCH] Fix the display of tons of CO2. --- flaskr/templates/estimation.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/flaskr/templates/estimation.html b/flaskr/templates/estimation.html index 881dff1..ef3fe4d 100644 --- a/flaskr/templates/estimation.html +++ b/flaskr/templates/estimation.html @@ -32,9 +32,9 @@ {% endif %} – - {{ "%.d" | format((city.footprint/1000.0) | round() | int) }} tons CO2EQ + {{ "%.1f" | format((city.footprint/1000.0) | round(1)) }} tons CO2EQ – - {{ "%.d" | format(city.distance | round() | int) }} km + {{ "%d" | format(city.distance | round() | int) }} km {% endfor %} -- libgit2 0.21.2