Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/knightjoel/notion-py into…
Browse files Browse the repository at this point in the history
… knightjoel-master

# Conflicts:
#	notion/client.py
#	notion/store.py
  • Loading branch information
bskim45 committed Apr 22, 2022
2 parents 5895edb + 9710ace commit 5e5ac1f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions notion/block.py
Original file line number Diff line number Diff line change
Expand Up @@ -714,7 +714,7 @@ class CollectionViewBlock(MediaBlock):

@property
def collection(self):
collection_id = self.get("collection_id")
collection_id = self.get("format.collection_pointer.id")
if not collection_id:
return None
if not hasattr(self, "_collection"):
Expand All @@ -725,7 +725,7 @@ def collection(self):
def collection(self, val):
if hasattr(self, "_collection"):
del self._collection
self.set("collection_id", val.id)
self.set("format.collection_pointer.id", val.id)

@property
def views(self):
Expand Down

0 comments on commit 5e5ac1f

Please sign in to comment.