Skip to content

Commit

Permalink
Merge pull request #19 from cl-fl/add-database-is_inline
Browse files Browse the repository at this point in the history
Add support for `is_inline` param to `create_database` function
  • Loading branch information
minwook-shin authored Mar 26, 2024
2 parents 2e1858d + e533c13 commit bebf512
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion notion_database/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def list_databases(self, page_size:int =100):
self.result = self.request.call_api_get(url)

def create_database(self, page_id: str, title:str,
properties: Properties = None, cover: Cover = None, icon: Icon = None):
properties: Properties = None, cover: Cover = None, icon: Icon = None, is_inline: bool = False):
"""
Create a database
Expand All @@ -108,6 +108,7 @@ def create_database(self, page_id: str, title:str,
:param properties: Property schema of database
:param cover:
:param icon:
:param is_inline: Shows the database inline of the parent page
:return:
"""
if properties is None:
Expand All @@ -117,6 +118,7 @@ def create_database(self, page_id: str, title:str,
"type": "page_id",
"page_id": page_id
},
"is_inline": is_inline,
"title": [
{
"type": "text",
Expand Down

0 comments on commit bebf512

Please sign in to comment.