Skip to main content
Glama

get_overdue_tasks

Retrieve all overdue tasks from Dida365 to identify and address pending items requiring immediate attention.

Instructions

获取所有已过期(逾期)的任务。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • 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

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Martinqi826/dida-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server