From 5a23f3cb92fbe357cfa871c345fb918627dc8a90 Mon Sep 17 00:00:00 2001 From: jyong <718720800@qq.com> Date: Thu, 29 Aug 2024 11:18:01 +0800 Subject: [PATCH] fixed permission is None --- api/services/dataset_service.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api/services/dataset_service.py b/api/services/dataset_service.py index ce5fa632dcfec1..e880c9ffc360f2 100644 --- a/api/services/dataset_service.py +++ b/api/services/dataset_service.py @@ -137,7 +137,8 @@ def get_datasets_by_ids(ids, tenant_id): @staticmethod def create_empty_dataset( - tenant_id: str, name: str, indexing_technique: Optional[str], account: Account, permission: Optional[str] + tenant_id: str, name: str, indexing_technique: Optional[str], account: Account, + permission: Optional[str] = None ): # check if dataset name already exists if Dataset.query.filter_by(name=name, tenant_id=tenant_id).first():