From 59d18bc2d7a4a8008107be764448c8601ee619f2 Mon Sep 17 00:00:00 2001 From: Jean-Romain Garnier Date: Sun, 9 Jan 2022 18:29:23 +0100 Subject: [PATCH] fix: Limit user monthly emissions decimal places --- footprint/templates/footprint/aff_profil.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/footprint/templates/footprint/aff_profil.html b/footprint/templates/footprint/aff_profil.html index 8c890553..38400d5f 100644 --- a/footprint/templates/footprint/aff_profil.html +++ b/footprint/templates/footprint/aff_profil.html @@ -42,7 +42,7 @@ with this program; if not, write to the Free Software Foundation, Inc., {% elif monthly_emissions is None %} {% trans "Unavailable" %} {% else %} - {{ monthly_emissions }} {% trans "kgCO₂e/month" %} + {{ monthly_emissions|floatformat:2 }} {% trans "kgCO₂e/month" %} {% endif %} {% trans "[Learn more]" %}