From 4f69adc8ab0b67d45ff5f578502c521086f0ba13 Mon Sep 17 00:00:00 2001 From: Vikey Chen Date: Mon, 23 Sep 2024 18:45:10 +0800 Subject: [PATCH] fix: document_create_args_validate (#8569) --- api/services/dataset_service.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/services/dataset_service.py b/api/services/dataset_service.py index 30c010ef29..e96f06ed40 100644 --- a/api/services/dataset_service.py +++ b/api/services/dataset_service.py @@ -1100,8 +1100,8 @@ class DocumentService: DocumentService.data_source_args_validate(args) DocumentService.process_rule_args_validate(args) else: - if ("data_source" not in args and not args["data_source"]) and ( - "process_rule" not in args and not args["process_rule"] + if ("data_source" not in args or not args["data_source"]) and ( + "process_rule" not in args or not args["process_rule"] ): raise ValueError("Data source or Process rule is required") else: