From 012e1a0dbf8f8b78faf7fa5c0962674b656af4df Mon Sep 17 00:00:00 2001 From: Julian Rachman Date: Thu, 4 Mar 2021 17:03:30 -0800 Subject: [PATCH 1/2] decreased 10000 fixed limits to 999 --- notion/client.py | 2 +- notion/store.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/notion/client.py b/notion/client.py index 3d74893..26d8c4d 100644 --- a/notion/client.py +++ b/notion/client.py @@ -310,7 +310,7 @@ def search_pages_with_parent(self, parent_id, search=""): data = { "query": search, "parentId": parent_id, - "limit": 10000, + "limit": 999, "spaceId": self.current_space.id, } response = self.post("searchPagesWithParent", data).json() diff --git a/notion/store.py b/notion/store.py index 57620c9..da429fb 100644 --- a/notion/store.py +++ b/notion/store.py @@ -277,7 +277,7 @@ def call_load_page_chunk(self, page_id): data = { "pageId": page_id, - "limit": 100000, + "limit": 999, "cursor": {"stack": []}, "chunkNumber": 0, "verticalColumns": False, @@ -326,7 +326,7 @@ def call_query_collection( "collectionId": collection_id, "collectionViewId": collection_view_id, "loader": { - "limit": 10000, + "limit": 999, "loadContentCover": True, "searchQuery": search, "userLocale": "en", From 4c8c8bff49d91c12e6c6357bf9ea80a8c9df921c Mon Sep 17 00:00:00 2001 From: Julian Rachman Date: Thu, 4 Mar 2021 17:41:23 -0800 Subject: [PATCH 2/2] moved some fixed limits down to 100 and for collection queries, bumped to 1,000,000 --- notion/client.py | 2 +- notion/store.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/notion/client.py b/notion/client.py index 26d8c4d..83b8326 100644 --- a/notion/client.py +++ b/notion/client.py @@ -310,7 +310,7 @@ def search_pages_with_parent(self, parent_id, search=""): data = { "query": search, "parentId": parent_id, - "limit": 999, + "limit": 100, "spaceId": self.current_space.id, } response = self.post("searchPagesWithParent", data).json() diff --git a/notion/store.py b/notion/store.py index da429fb..2393e37 100644 --- a/notion/store.py +++ b/notion/store.py @@ -277,7 +277,7 @@ def call_load_page_chunk(self, page_id): data = { "pageId": page_id, - "limit": 999, + "limit": 100, "cursor": {"stack": []}, "chunkNumber": 0, "verticalColumns": False, @@ -326,7 +326,7 @@ def call_query_collection( "collectionId": collection_id, "collectionViewId": collection_view_id, "loader": { - "limit": 999, + "limit": 1000000, "loadContentCover": True, "searchQuery": search, "userLocale": "en",