fix: set list id correctly in _extract_lists (v0.2.3)

This commit is contained in:
2026-04-15 13:51:12 +02:00
parent 8cf707e3bd
commit eedf9c2ce5
3 changed files with 9 additions and 9 deletions
+7 -7
View File
@@ -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"),
}
)