Commit cca2ba95 authored by jyong's avatar jyong

add notion customer icon

parent 270c3d7b
...@@ -129,7 +129,7 @@ class NotionOAuth(OAuthDataSource): ...@@ -129,7 +129,7 @@ class NotionOAuth(OAuthDataSource):
page_icon = page_result['icon'] page_icon = page_result['icon']
if page_icon: if page_icon:
icon_type = page_icon['type'] icon_type = page_icon['type']
if icon_type == 'external': if icon_type == 'external' or icon_type == 'file':
icon = { icon = {
'type': 'url', 'type': 'url',
'url': page_icon[icon_type]['url'] 'url': page_icon[icon_type]['url']
...@@ -165,7 +165,7 @@ class NotionOAuth(OAuthDataSource): ...@@ -165,7 +165,7 @@ class NotionOAuth(OAuthDataSource):
page_icon = database_result['icon'] page_icon = database_result['icon']
if page_icon: if page_icon:
icon_type = page_icon['type'] icon_type = page_icon['type']
if icon_type == 'external': if icon_type == 'external' or icon_type == 'file':
icon = { icon = {
'type': 'url', 'type': 'url',
'url': page_icon[icon_type]['url'] 'url': page_icon[icon_type]['url']
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment