From b8fa5f4d279d2f7246e6593a25ff12b64de84397 Mon Sep 17 00:00:00 2001 From: bruno Date: Fri, 10 Jul 2026 20:50:56 -0400 Subject: [PATCH] =?UTF-8?q?fix:=20sqlite3.Row=20.get()=20=E2=86=92=20brack?= =?UTF-8?q?et=20notation=20in=20=5Fload=5Fworkspace=5Fpages?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Same bug as tree API — sqlite3.Row doesn't implement .get(), only __getitem__ (bracket notation). Fixed icon detection for folders vs files in sidebar workspace section. --- app/routers/board.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/routers/board.py b/app/routers/board.py index bb2eca5..db894b2 100644 --- a/app/routers/board.py +++ b/app/routers/board.py @@ -152,7 +152,7 @@ def _load_workspace_pages(ws_cookie: str) -> list: (ws_id,), ).fetchall() return [{"db_id": r["id"], "name": r["title"] or "Untitled", "id": f"page/{r['id']}", - "icon": "📁" if r.get("parent_section") == "Workspace" else "📄"} for r in rows] + "icon": "📁" if r["parent_section"] == "Workspace" else "📄"} for r in rows] except (ValueError, Exception): return []