diff --git a/web/monitor_routes.py b/web/monitor_routes.py index 2b296b5c..4863f631 100644 --- a/web/monitor_routes.py +++ b/web/monitor_routes.py @@ -97,7 +97,7 @@ def _runway_pairs(city_weather: Dict[str, Any]) -> List[Dict[str, Any]]: result = [] for (r1, r2), (t, _d) in zip(pairs, temps): if t is not None: - result.append({"label": f"{r1}/{r2}", "temp": round(t, 1)}) + result.append({"label": f"{r1}/{r2}", "temp": round(float(t), 1)}) return result def _build_city_card(city: str, city_weather: Dict[str, Any], cfg: Dict[str, Any]) -> Dict[str, Any]: diff --git a/web/templates/monitor.html b/web/templates/monitor.html index 68cc6f0c..4bb84e1c 100644 --- a/web/templates/monitor.html +++ b/web/templates/monitor.html @@ -67,10 +67,8 @@ body{background:#0f1117;color:#c8cdd4;font-family:-apple-system,BlinkMacSystemFo -{% if full_page or not full_page %}
-{% endif %} {{ generated_at }} {% for c in cities %}
@@ -119,8 +117,8 @@ body{background:#0f1117;color:#c8cdd4;font-family:-apple-system,BlinkMacSystemFo
{% for rw in c.runway_pairs %}
- {{ rw.label }} - {{ "%.1f"|format(rw.temp) }}°C + {{ rw["label"] }} + {{ "%.1f"|format(rw["temp"]) }}°C
{% endfor %}