Skip to content

Commit ecc325a

Browse files
authored
Merge pull request #7 from julrach/master
Fix 400 error on get_block() call
2 parents 01185de + 4c8c8bf commit ecc325a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

notion/client.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ def search_pages_with_parent(self, parent_id, search=""):
310310
data = {
311311
"query": search,
312312
"parentId": parent_id,
313-
"limit": 10000,
313+
"limit": 100,
314314
"spaceId": self.current_space.id,
315315
}
316316
response = self.post("searchPagesWithParent", data).json()

notion/store.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ def call_load_page_chunk(self, page_id):
277277

278278
data = {
279279
"pageId": page_id,
280-
"limit": 100000,
280+
"limit": 100,
281281
"cursor": {"stack": []},
282282
"chunkNumber": 0,
283283
"verticalColumns": False,
@@ -326,7 +326,7 @@ def call_query_collection(
326326
"collectionId": collection_id,
327327
"collectionViewId": collection_view_id,
328328
"loader": {
329-
"limit": 10000,
329+
"limit": 1000000,
330330
"loadContentCover": True,
331331
"searchQuery": search,
332332
"userLocale": "en",

0 commit comments

Comments
 (0)