跑道数据改用 tuple 避免 Jinja2 dict unhashable 错误

This commit is contained in:
2569718930@qq.com
2026-05-13 23:41:31 +08:00
parent d56889c2e5
commit 1240fbb673
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -117,8 +117,8 @@ body{background:#0f1117;color:#c8cdd4;font-family:-apple-system,BlinkMacSystemFo
<div class="runway-divider"></div>
{% for rw in c.runway_pairs %}
<div class="runway-row">
<span class="runway-label">{{ rw["label"] }}</span>
<span class="runway-temp">{{ "%.1f"|format(rw["temp"]) }}°C</span>
<span class="runway-label">{{ rw[0] }}</span>
<span class="runway-temp">{{ "%.1f"|format(rw[1]) }}°C</span>
</div>
{% endfor %}
</div>