comparison weather_server/templates/index.html @ 47:d200755e0930 v0.1.5

go back to fahrenheit
author Paul Fisher <paul@pfish.zone>
date Sat, 03 May 2025 20:12:28 -0400
parents 4af79d69b12e
children
comparison
equal deleted inserted replaced
46:74b57044b2bd 47:d200755e0930
19 <a href="{{ url_for('show', location=location.key) }}"> 19 <a href="{{ url_for('show', location=location.key) }}">
20 <b>{{ location.name }}</b> 20 <b>{{ location.name }}</b>
21 <span> 21 <span>
22 {%- set reading = location.latest() -%} 22 {%- set reading = location.latest() -%}
23 {%- if reading -%} 23 {%- if reading -%}
24 {{ reading.temp_k|int -}} 24 {{ reading.temp_f|int -}}
25 &nbsp;K 25 &nbsp;°F
26 {%- else -%} 26 {%- else -%}
27 ??? 27 ???
28 {%- endif -%} 28 {%- endif -%}
29 </span> 29 </span>
30 </a> 30 </a>