get_overdue_tasks
Retrieve all overdue tasks from Dida365 to identify and address pending items requiring immediate attention.
Instructions
获取所有已过期(逾期)的任务。
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/dida_mcp/client.py:251-265 (handler)The get_overdue_tasks method in DidaClient fetches all tasks and filters them to identify those that are overdue based on their due date and completion status.
def get_overdue_tasks(self) -> List[Dict]: """获取已过期的任务""" now = datetime.now(timezone.utc) all_tasks = self.get_all_tasks() overdue: List[Dict] = [] for task in all_tasks: due = task.get("dueDate") if due and task.get("status", 0) == 0: try: due_dt = datetime.fromisoformat(due.replace("Z", "+00:00")) if due_dt < now: overdue.append(task) except ValueError: continue return overdue