From 7e8928a6072d2d9310d86cafae18d16949a3275b Mon Sep 17 00:00:00 2001 From: Wolfvin Date: Sun, 28 Jun 2026 15:32:03 +0000 Subject: [PATCH] =?UTF-8?q?fix(dashboard):=20replace=20backslash=20in=20f-?= =?UTF-8?q?string=20expression=20=E2=80=94=20closes=20#74?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Line 655 of dashboard_engine.py used escaped double-quotes (\") inside an f-string expression part {expr}. Python 3.11 and earlier disallow backslashes in f-string expression parts (Python 3.12 PEP 701 relaxed this rule). This caused dashboard.py to fail import on Python 3.11, silently removing the dashboard command from the registry (caught by auto-import except block — see issue #39). Fix: use single-quote triple-quoted string inside the expression to avoid the backslash entirely. The HTML output is identical. Verified: - Python 3.11.15: dashboard_engine imports without error - Python 3.12.13: dashboard_engine imports without error (was already working) --- scripts/dashboard_engine.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/dashboard_engine.py b/scripts/dashboard_engine.py index 9a189da..8099342 100644 --- a/scripts/dashboard_engine.py +++ b/scripts/dashboard_engine.py @@ -652,7 +652,7 @@ def _build_html(data: Dict[str, Any]) -> str: - {"" if comparison else ""} + {'''''' if comparison else ""}