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
76f9694f
Commit
76f9694f
authored
Jun 16, 2023
by
jyong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
return empty result
parent
66342741
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
data_source.py
api/controllers/console/datasets/data_source.py
+3
-1
oauth_data_source.py
api/libs/oauth_data_source.py
+0
-1
No files found.
api/controllers/console/datasets/data_source.py
View file @
76f9694f
...
...
@@ -189,7 +189,9 @@ class DataSourceNotionListApi(Resource):
disabled
=
False
)
.
all
()
if
not
data_source_bindings
:
raise
NotFound
(
'Data source binding not found.'
)
return
{
'notion_info'
:
[]
},
200
pre_import_info_list
=
[]
for
data_source_binding
in
data_source_bindings
:
source_info
=
data_source_binding
.
source_info
...
...
api/libs/oauth_data_source.py
View file @
76f9694f
...
...
@@ -73,7 +73,6 @@ class NotionOAuth(OAuthDataSource):
if
data_source_binding
:
data_source_binding
.
source_info
=
source_info
data_source_binding
.
disabled
=
False
db
.
session
.
add
(
data_source_binding
)
db
.
session
.
commit
()
else
:
new_data_source_binding
=
DataSourceBinding
(
...
...
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