Skip to content

Commit 9fa3a75

Browse files
Merge #833
833: Add total to TasksResult r=sanders41 a=arturgoms # Pull Request ## Related issue Fixes #831 ## What does this PR do? - add `total` to the `TasksResult` class ## PR checklist Please check if your PR fulfills the following requirements: - [X] Does this PR fix an existing issue, or have you listed the changes applied in the PR description (and why they are needed)? - [x] Have you read the contributing guidelines? - [x] Have you made sure that the title is accurate and descriptive of the changes? Thank you so much for contributing to Meilisearch! Co-authored-by: Artur Gomes <[email protected]>
2 parents a26fc60 + 972d258 commit 9fa3a75

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

meilisearch/models/task.py

+1
Original file line numberDiff line numberDiff line change
@@ -111,5 +111,6 @@ class TaskResults:
111111
def __init__(self, resp: Dict[str, Any]) -> None:
112112
self.results: List[Task] = [Task(**task) for task in resp["results"]]
113113
self.limit: int = resp["limit"]
114+
self.total: int = resp["total"]
114115
self.from_: int = resp["from"]
115116
self.next_: int = resp["next"]

0 commit comments

Comments
 (0)