From 37c5c0c2924552d92ff9f90c77f0420284ae1ddc Mon Sep 17 00:00:00 2001 From: ramnes Date: Sat, 4 Nov 2023 14:14:37 +0100 Subject: [PATCH] Update readme with is_full_page_or_database --- README.md | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 40fd5a5c..b25dcf2f 100644 --- a/README.md +++ b/README.md @@ -179,13 +179,14 @@ These options are all keys in the single constructor parameter. The following functions can distinguish between full and partial API responses. -| Function | Purpose | -| ------------------- | -------------------------------------------------------------- | -| `is_full_page` | Determine whether an object is a full [Page object](https://developers.notion.com/reference/page) | -| `is_full_block` | Determine whether an object is a full [Block object](https://developers.notion.com/reference/block) | -| `is_full_database` | Determine whether an object is a full [Database object](https://developers.notion.com/reference/database) | -| `is_full_user` | Determine whether an object is a full [User object](https://developers.notion.com/reference/user) | -| `is_full_comment` | Determine whether an object is a full [Comment object](https://developers.notion.com/reference/comment-object) | +| Function | Purpose | +| -------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `is_full_page` | Determine whether an object is a full [Page object](https://developers.notion.com/reference/page) | +| `is_full_block` | Determine whether an object is a full [Block object](https://developers.notion.com/reference/block) | +| `is_full_database` | Determine whether an object is a full [Database object](https://developers.notion.com/reference/database) | +| `is_full_page_or_database` | Determine whether an object is a full [Page object](https://developers.notion.com/reference/page) or [Database object](https://developers.notion.com/reference/database) | +| `is_full_user` | Determine whether an object is a full [User object](https://developers.notion.com/reference/user) | +| `is_full_comment` | Determine whether an object is a full [Comment object](https://developers.notion.com/reference/comment-object) | ```python @@ -196,7 +197,7 @@ full_or_partial_pages = await notion.databases.query( ) for page in full_or_partial_pages["results"]: - if not is_full_page(page): + if not is_full_page_or_database(page): continue print(f"Created at: {page['created_time']}") ```