This PR aims to address the issue raised in #51 and #41
When the page is longer than 100 blocks, it cannot be retrieved in a single call to the Notion private API. There was code to go through the "pagination" to retrieve missing blocks, but it was not working. I replaced it something simpler that does the following:
Get the list of all block ids on the page
Check which one are missing from the list of blocks we have
Fetch missing blocks
Do that again if there are still missing blocks.
Because my code is simpler, I may have broken other things. I don't have any knowledge about the Notion private API, so if you have more experience, please review the change made.
This PR aims to address the issue raised in #51 and #41 When the page is longer than 100 blocks, it cannot be retrieved in a single call to the Notion private API. There was code to go through the "pagination" to retrieve missing blocks, but it was not working. I replaced it something simpler that does the following:
Because my code is simpler, I may have broken other things. I don't have any knowledge about the Notion private API, so if you have more experience, please review the change made.