Skip to content

Commit e8907c2

Browse files
committed
Update README with the newer helpers
1 parent d01a805 commit e8907c2

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -183,14 +183,14 @@ These options are all keys in the single constructor parameter.
183183
The following functions can distinguish between full and partial API responses.
184184

185185
<!-- markdownlint-disable -->
186-
| Function | Purpose |
187-
| -------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
188-
| `is_full_page` | Determine whether an object is a full [Page object](https://developers.notion.com/reference/page) |
189-
| `is_full_block` | Determine whether an object is a full [Block object](https://developers.notion.com/reference/block) |
190-
| `is_full_database` | Determine whether an object is a full [Database object](https://developers.notion.com/reference/database) |
191-
| `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) |
192-
| `is_full_user` | Determine whether an object is a full [User object](https://developers.notion.com/reference/user) |
193-
| `is_full_comment` | Determine whether an object is a full [Comment object](https://developers.notion.com/reference/comment-object) |
186+
| Function | Purpose |
187+
| -------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
188+
| `is_full_page` | Determine whether an object is a full [Page object](https://developers.notion.com/reference/page) |
189+
| `is_full_block` | Determine whether an object is a full [Block object](https://developers.notion.com/reference/block) |
190+
| `is_full_data_source` | Determine whether an object is a full [Data source object](https://developers.notion.com/reference/data-source) |
191+
| `is_full_page_or_data_source` | Determine whether an object is a full [Page object](https://developers.notion.com/reference/page) or [Data source object](https://developers.notion.com/reference/data-source) |
192+
| `is_full_user` | Determine whether an object is a full [User object](https://developers.notion.com/reference/user) |
193+
| `is_full_comment` | Determine whether an object is a full [Comment object](https://developers.notion.com/reference/comment-object) |
194194
<!-- markdownlint-enable -->
195195

196196
```python
@@ -201,7 +201,7 @@ full_or_partial_pages = notion.data_sources.query(
201201
)
202202

203203
for page in full_or_partial_pages["results"]:
204-
if not is_full_page_or_database(page):
204+
if not is_full_page_or_data_source(page):
205205
continue
206206
print(f"Created at: {page['created_time']}")
207207
```

0 commit comments

Comments
 (0)