auto-sync: 2026-05-29 12:26:59

This commit is contained in:
cfdaily
2026-05-29 12:26:59 +08:00
parent e32bef55a8
commit 79cfbfb42a
+5 -1
View File
@@ -90,7 +90,11 @@ def _list_tasks(pid: str, **params) -> List[Dict]:
resp = http_requests.get(
f"{API_BASE}/api/projects/{pid}/tasks", params=params, timeout=10)
assert resp.status_code == 200
return resp.json()
data = resp.json()
# API 返回 {"tasks": [...]} 或直接 [...]
if isinstance(data, dict) and "tasks" in data:
return data["tasks"]
return data
def _update_status(pid: str, tid: str, status: str,