Browse Source

fix notion page display (#15508)

tags/1.0.1
Jyong 7 months ago
parent
commit
1ffda0dd34
No account linked to committer's email address
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      api/controllers/console/datasets/data_source.py

+ 1
- 1
api/controllers/console/datasets/data_source.py View File

if dataset.data_source_type != "notion_import": if dataset.data_source_type != "notion_import":
raise ValueError("Dataset is not notion type.") raise ValueError("Dataset is not notion type.")


documents = session.execute(
documents = session.scalars(
select(Document).filter_by( select(Document).filter_by(
dataset_id=dataset_id, dataset_id=dataset_id,
tenant_id=current_user.current_tenant_id, tenant_id=current_user.current_tenant_id,

Loading…
Cancel
Save