Skip to content

Commit bbc203a

Browse files
committed
fix bug
1 parent 156f530 commit bbc203a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
254 KB
Loading

scripts/notion_helper.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,12 +177,12 @@ def create_database(self):
177177
}},
178178
}
179179
parent = parent = {"page_id": self.page_id, "type": "page_id"}
180-
self.client.databases.create(
180+
self.read_database_id=self.client.databases.create(
181181
parent=parent,
182182
title=title,
183183
icon=get_icon("https://www.notion.so/icons/target_gray.svg"),
184184
properties=properties,
185-
)
185+
).get("id")
186186

187187
def update_image_block_link(self, block_id, new_image_url):
188188
# 更新 image block 的链接

0 commit comments

Comments
 (0)