Skip to content

Commit 972d258

Browse files
committed
Add total to TasksResult
1 parent a26fc60 commit 972d258

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

meilisearch/models/task.py

Lines changed: 1 addition & 0 deletions
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)