Skip to content

Closed#

pyticktick.models.v2.parameters.closed #

Model for getting closed tasks from the database.

Unofficial API

These models are part of the unofficial TickTick API. They were created by reverse engineering the API. They may be incomplete or inaccurate.

Classes:

Name Description
GetClosedV2

Model for getting closed tasks from the database.

GetClosedV2 pydantic-model #

Bases: BaseModel

Model for getting closed tasks from the database.

These are tasks that have been marked as completed or abandoned. They will not show up in the normal task list.

Show JSON schema:
{
  "additionalProperties": false,
  "description": "Model for getting closed tasks from the database.\n\nThese are tasks that have been marked as completed or abandoned. They will not show\nup in the normal task list.",
  "properties": {
    "The latest date to get tasks from": {
      "anyOf": [
        {
          "format": "date-time",
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "The Latest Date To Get Tasks From"
    },
    "to": {
      "anyOf": [
        {
          "format": "date-time",
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "The earliest date to get tasks from",
      "title": "To"
    },
    "status": {
      "description": "Whether to get completed or \"won't do\" tasks",
      "enum": [
        "Completed",
        "Abandoned"
      ],
      "title": "Status",
      "type": "string"
    }
  },
  "required": [
    "status"
  ],
  "title": "GetClosedV2",
  "type": "object"
}

Config:

  • extra: forbid

Fields:

  • from_ (datetime | None)
  • to (datetime | None)
  • status (Literal['Completed', 'Abandoned'])

status pydantic-field #

status: Literal['Completed', 'Abandoned']

Whether to get completed or "won't do" tasks

to pydantic-field #

to: datetime | None = None

The earliest date to get tasks from