mirror of
https://github.com/langgenius/dify.git
synced 2024-11-16 03:32:23 +08:00
fix: redundant check for available_document_count (#8491)
This commit is contained in:
parent
ddf6569dc5
commit
8fd297f8b4
|
@ -110,7 +110,7 @@ class DatasetRetrieval:
|
|||
continue
|
||||
|
||||
# pass if dataset is not available
|
||||
if dataset and dataset.available_document_count == 0 and dataset.available_document_count == 0:
|
||||
if dataset and dataset.available_document_count == 0:
|
||||
continue
|
||||
|
||||
available_datasets.append(dataset)
|
||||
|
@ -468,7 +468,7 @@ class DatasetRetrieval:
|
|||
continue
|
||||
|
||||
# pass if dataset is not available
|
||||
if dataset and dataset.available_document_count == 0 and dataset.available_document_count == 0:
|
||||
if dataset and dataset.available_document_count == 0:
|
||||
continue
|
||||
|
||||
available_datasets.append(dataset)
|
||||
|
|
Loading…
Reference in New Issue
Block a user