# HG changeset patch # User Paul Fisher # Date 1625272691 14400 # Node ID e5a03d63b3d9479bd89bcd5bf6641bd033eb2ba5 # Parent 2f3473416c11c829e7edb9f1efdc94e703407da8 Truncate, don’t round, temperatures displayed in HTML. diff -r 2f3473416c11 -r e5a03d63b3d9 weather_server/templates/index.html --- 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 @@ {%- set reading = location.latest() -%} {%- if reading -%} - {{ reading.temp_f|round|int -}} + {{ reading.temp_f|int -}}  °F {%- else -%} ??? diff -r 2f3473416c11 -r e5a03d63b3d9 weather_server/templates/location.html --- a/weather_server/templates/location.html Fri Jul 02 20:36:56 2021 -0400 +++ b/weather_server/templates/location.html Fri Jul 02 20:38:11 2021 -0400 @@ -19,7 +19,7 @@ - {{- last_reading.temp_f|round|int -}} + {{- last_reading.temp_f|int -}} °F @@ -29,7 +29,7 @@ - {{- last_reading.dew_point_f|round|int -}} + {{- last_reading.dew_point_f|int -}} °F