fix: set list id correctly in _extract_lists (v0.2.3)
This commit is contained in:
+1
-1
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
||||
|
||||
[project]
|
||||
name = "mcp-familywall"
|
||||
version = "0.2.2"
|
||||
version = "0.2.3"
|
||||
description = "MCP server for Family Wall — read your family's lists and tasks via Claude"
|
||||
readme = "README.md"
|
||||
requires-python = ">=3.12"
|
||||
|
||||
@@ -1 +1 @@
|
||||
__version__ = "0.2.2"
|
||||
__version__ = "0.2.3"
|
||||
|
||||
@@ -82,7 +82,7 @@ def _extract_lists(data: dict[str, Any]) -> list[dict[str, Any]]:
|
||||
{
|
||||
"id": list_id,
|
||||
"name": list_id, # real name unknown — TODO once field identified
|
||||
"type": "UNKNOWN",
|
||||
"type": None,
|
||||
"open": None,
|
||||
"total": None,
|
||||
}
|
||||
@@ -190,15 +190,15 @@ def get_lists(scope: str | None = None) -> str:
|
||||
|
||||
result = []
|
||||
for item in raw_lists:
|
||||
# TODO: apply scope filtering once the circle field is identified
|
||||
# in the response (field name not yet verified via live API call).
|
||||
# _extract_lists already normalises to {id, name, type, open, total}.
|
||||
# TODO: apply scope filtering once the circle field is identified.
|
||||
result.append(
|
||||
{
|
||||
"id": item.get("metaId"),
|
||||
"id": item.get("id"),
|
||||
"name": translate_name(item.get("name", "")),
|
||||
"type": item.get("taskListType"),
|
||||
"open": item.get("remainingTaskNumber"),
|
||||
"total": item.get("totalTaskNumber"),
|
||||
"type": item.get("type"),
|
||||
"open": item.get("open"),
|
||||
"total": item.get("total"),
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user