-
Notifications
You must be signed in to change notification settings - Fork 475
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
adjusted fixed query limits #293
base: master
Are you sure you want to change the base?
Conversation
I think 100 is maximum allowed, because even 101 throws an error. |
@hellvesper You right, IDK why it worked for a second for me. I think they have some incremental thing going on. Will do some more research. |
@hellvesper Feel free to check this out again, I did some proper experimenting this time. |
The very hot, hot-fix based on this PR |
@@ -310,7 +310,7 @@ def search_pages_with_parent(self, parent_id, search=""): | |||
data = { | |||
"query": search, | |||
"parentId": parent_id, | |||
"limit": 10000, | |||
"limit": 100, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it'd be better to store this as a constant somewhere. So if it changes later, there's only 1 place to update. Thoughts?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe it could be an argument in NotionClient.__init__()
?
I believe #294 has a better approach. |
#292
Future thoughts: is there going to be pagination if the number of blocks surpasses 1000?