I think i found a bug in the properties class. I tried to unset the checkbox in one of my notion databases. I alway got a validation erros because the set_checkbox function will always replace the 'False' value with a dict:
This example always resulted in the follwoing errror message:
I was able to resolve this by changing the default value in the set_checkbox function to 'False'
def set_checkbox(self, col, text=None):
"""
checkbox configuration
:param col: column name
:param text: page text. If no text is given, for database only.
:return:
"""
if not text:
text = False #! changed this from {} to 'False'
self.result.update({col: {"checkbox": text}})
I´m not sure If I made somthing wrong or there was a change in the notion API.
Hi,
I think i found a bug in the properties class. I tried to unset the checkbox in one of my notion databases. I alway got a validation erros because the set_checkbox function will always replace the 'False' value with a dict:
example:
This example always resulted in the follwoing errror message:
I was able to resolve this by changing the default value in the set_checkbox function to 'False'
I´m not sure If I made somthing wrong or there was a change in the notion API.