Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
dify
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ai-tech
dify
Commits
dd1edab8
Commit
dd1edab8
authored
Jun 16, 2023
by
jyong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix ai_block type
parent
b668d06c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
notion.py
api/core/data_source/notion.py
+5
-1
No files found.
api/core/data_source/notion.py
View file @
dd1edab8
...
...
@@ -58,6 +58,9 @@ class NotionPageReader(BaseReader):
"GET"
,
block_url
,
headers
=
self
.
headers
,
json
=
query_dict
)
data
=
res
.
json
()
if
data
[
"results"
]
is
None
:
done
=
True
break
heading
=
''
for
result
in
data
[
"results"
]:
result_type
=
result
[
"type"
]
...
...
@@ -211,7 +214,8 @@ class NotionPageReader(BaseReader):
self
,
database_id
:
str
,
query_dict
:
Dict
[
str
,
Any
]
=
{}
)
->
List
[
str
]:
"""Get all the pages from a Notion database."""
res
=
requests
.
post
(
res
=
requests
.
post
\
(
DATABASE_URL_TMPL
.
format
(
database_id
=
database_id
),
headers
=
self
.
headers
,
json
=
query_dict
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment