v0.4.0
Pre-release
Pre-release
Summary
Database(...).title
will now return the name of the database- You can now do basic updating of pages. If you use the database without type mapping, you currently use subscripts to set the property values:
if you use custom models, you need at least an id field + use attribute setters (
db = Database(database_id, Client(auth=notion_token)) page = db.find_by_id("b59fec7c9a4b43b1b169bd10aa843053") page['MyAttribute'] = "foo" db.update(page)
page.MyAttribute = "foo"
)
What's changed
Full Changelog: v0.3.0...v0.4.0