docs(usability): reorganize README.md tools by category — move get_activities and like_post to Wall & Activities (v1.4.4)
- Consolidate wall post and activity tools in dedicated section - Remove duplicate entries from Lists & Tasks - Update README version header to v1.4.3 - Bump pyproject.toml to v1.4.4 - Fix unused import in find_category_param.py Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -14,7 +14,6 @@ Prerequisites: credentials stored in OS keyring or FW_EMAIL / FW_PASSWORD set.
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import json
|
||||
import os
|
||||
import sys
|
||||
|
||||
@@ -39,24 +38,22 @@ FORCED_CATEGORY_META_ID: str | None = None
|
||||
CANDIDATES: list[dict[str, str | None]] = [
|
||||
# key → value format description
|
||||
# Full metaId variants
|
||||
{"key": "systemCategoryId", "fmt": "numeric"}, # just the number, e.g. "200"
|
||||
{"key": "taskCategorySystemId", "fmt": "numeric"},
|
||||
{"key": "categories", "fmt": "meta_id"}, # full taskCategory/… metaId
|
||||
{"key": "categoryIds", "fmt": "meta_id"},
|
||||
{"key": "taskCategoryName", "fmt": "name"}, # category name as string
|
||||
{"key": "categoryName", "fmt": "name"},
|
||||
{"key": "taskCategoryId", "fmt": "meta_id"}, # already tried but try numeric too
|
||||
{"key": "systemCategoryId", "fmt": "numeric"}, # just the number, e.g. "200"
|
||||
{"key": "taskCategorySystemId", "fmt": "numeric"},
|
||||
{"key": "categories", "fmt": "meta_id"}, # full taskCategory/… metaId
|
||||
{"key": "categoryIds", "fmt": "meta_id"},
|
||||
{"key": "taskCategoryName", "fmt": "name"}, # category name as string
|
||||
{"key": "categoryName", "fmt": "name"},
|
||||
{"key": "taskCategoryId", "fmt": "meta_id"}, # already tried but try numeric too
|
||||
# Numeric variants of already-tried names
|
||||
{"key": "taskCategoryId", "fmt": "numeric"},
|
||||
{"key": "categoryId", "fmt": "numeric"},
|
||||
{"key": "category", "fmt": "numeric"},
|
||||
{"key": "categoryMetaId", "fmt": "numeric"},
|
||||
{"key": "taskCategoryId", "fmt": "numeric"},
|
||||
{"key": "categoryId", "fmt": "numeric"},
|
||||
{"key": "category", "fmt": "numeric"},
|
||||
{"key": "categoryMetaId", "fmt": "numeric"},
|
||||
]
|
||||
|
||||
|
||||
def _resolve_category(
|
||||
client: FamilyWallClient, list_id: str
|
||||
) -> tuple[str, str, str]:
|
||||
def _resolve_category(client: FamilyWallClient, list_id: str) -> tuple[str, str, str]:
|
||||
"""Return (meta_id, system_category_id_str, name) for the first German category."""
|
||||
data = client.call(
|
||||
"accgetallfamily",
|
||||
|
||||
Reference in New Issue
Block a user