Commit 1d3e7e2
Changed files (1)
src
database
src/database/turso.py
@@ -265,4 +265,4 @@ def turso_parse_resp(resp: dict) -> list[dict]:
"""Parse turso SELECT response."""
cols = glom(resp, "results.0.response.result.cols", default=[])
rows = glom(resp, "results.0.response.result.rows", default=[])
- return [{col["name"]: x["value"] for x, col in zip(row, cols, strict=True)} for row in rows]
+ return [{col["name"]: x.get("value", "") for x, col in zip(row, cols, strict=True)} for row in rows]