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 1/2] 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(): From 439db338e388115054d9e23fad707bd9a7754749 Mon Sep 17 00:00:00 2001 From: jyong <718720800@qq.com> Date: Thu, 29 Aug 2024 11:33:24 +0800 Subject: [PATCH 2/2] fixed permission is None --- api/services/dataset_service.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/api/services/dataset_service.py b/api/services/dataset_service.py index e880c9ffc360f2..d10df3f600beab 100644 --- a/api/services/dataset_service.py +++ b/api/services/dataset_service.py @@ -137,8 +137,7 @@ 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] = None + 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():