fix: sqlite3.Row .get() → bracket notation in _load_workspace_pages
FlowDeck CI / test (push) Failing after 4s
FlowDeck CI / docker (push) Has been skipped

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.
This commit is contained in:
2026-07-10 20:50:56 -04:00
parent a531d6d466
commit b8fa5f4d27
+1 -1
View File
@@ -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 []