diff weather_server/templates/index.html @ 36:e5a03d63b3d9 default tip

Truncate, don’t round, temperatures displayed in HTML.
author Paul Fisher <paul@pfish.zone>
date Fri, 02 Jul 2021 20:38:11 -0400
parents 27217790dc04
children
line wrap: on
line diff
--- a/weather_server/templates/index.html	Fri Jul 02 20:36:56 2021 -0400
+++ b/weather_server/templates/index.html	Fri Jul 02 20:38:11 2021 -0400
@@ -21,7 +21,7 @@
                     <span>
                         {%- set reading = location.latest() -%}
                         {%- if reading -%}
-                            {{ reading.temp_f|round|int -}}
+                            {{ reading.temp_f|int -}}
                             &nbsp;°F
                         {%- else -%}
                             ???