Skip to content

Commit

Permalink
fix: reduce limits in API requests
Browse files Browse the repository at this point in the history
  • Loading branch information
knightjoel committed Mar 23, 2022
1 parent c9223c0 commit 5210130
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion notion/client.py
Expand Up @@ -310,7 +310,7 @@ def search_pages_with_parent(self, parent_id, search=""):
data = {
"query": search,
"parentId": parent_id,
"limit": 10000,
"limit": 100,
"spaceId": self.current_space.id,
}
response = self.post("searchPagesWithParent", data).json()
Expand Down
4 changes: 2 additions & 2 deletions notion/store.py
Expand Up @@ -277,7 +277,7 @@ def call_load_page_chunk(self, page_id):

data = {
"pageId": page_id,
"limit": 100000,
"limit": 100,
"cursor": {"stack": []},
"chunkNumber": 0,
"verticalColumns": False,
Expand Down Expand Up @@ -326,7 +326,7 @@ def call_query_collection(
"collectionId": collection_id,
"collectionViewId": collection_view_id,
"loader": {
"limit": 10000,
"limit": 100,
"loadContentCover": True,
"searchQuery": search,
"userLocale": "en",
Expand Down

0 comments on commit 5210130

Please sign in to comment.