Closed tol2000 closed 2 years ago
Hello, thanks for feedback.
.raw
attr of the object if really neededpytion v1.3.0
:.get_page_properties()
like that:
...
for p in res.obj:
res.get_page_properties(obj=p)
print(f'url: {p.url}')
for field_name, field_property in p.properties.items():
print(f' {field_name}, type: {type(field_property)}')
...
API developers did rollback with page getting algo: https://developers.notion.com/changelog/changes-for-august-31-2022
Если короче, то ребята при релизе новой API версии сначала поменяли алгоритм выгрузки объектов Page, а потом без смены версии сделали откат.
for v1.3.1 #32 will be fixed
I didn't dig deep into the deeps of Notion API jsons, I learned your library, it was enough for my tasks. Objects - its cool! ) So, it was not your bug, just temp feature) Ok, I will follow your and Notion progress:), hope that will be number one Notion API object wrapper!
P.S. Приятно, что разработчик русскоязычный :) Реально из живых существующих питоновских либов по notion твой, похоже, самый крутой! Буду следить.
Hello! Thank you for the interesting notion api object wrapper. As I understood, class PropertyValue does not fully support images now? But I tried to use this class in database pages and got items of Property class (I expected PropertyValue class) Here is my code:
May be, I misunderstood something, but, may be in the string 541 of models.py (fragment below) you have to wrote
name: (PropertyValue(data)
instead ofname: (Property(data)
?