← Commit history

dashboard: read the bridgeVersion stamped on every 0.9.159+ response (header showed 'bridge ?')

John Lauer ·e5e69f8e20 ·1mo ago ·parent 40d50cc
1 file changed +2−1
dashboard/kicad_dashboard.py+2−1
@@ -251,7 +251,8 @@ def build_status(target):     settings = (ab(target, "kicad_get_settings", {}, timeout=60) or {}).get("settings") or {}     return {"target": target, "targets": targets, "leds": leds, "settings": settings,             "windows": [w.get("title") for w in (ks.get("windows") or [])],-            "bridgeVersion": ks.get("bridgeVersion") or r.get("bridgeVersion"),+            "bridgeVersion": (ks.get("bridgeVersion") or st.get("bridgeVersion")+                              or r.get("bridgeVersion") or cu.get("bridgeVersion")),             "dashboardVersion": VERSION, "generatedAt": time.strftime("%H:%M:%S"),             "_hint": "Every LED carries its own _hint naming the verb that fixes it. "                      "POST /api/action {action,args} to act; GET /api/status to re-read; "