Skip to content

Commit cc6c95d

Browse files
Update welearn_datastack/nodes_workflow/DocumentClassifier/document_classifier.py
Co-authored-by: Sandra Guerreiro <[email protected]>
1 parent d70880c commit cc6c95d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

welearn_datastack/nodes_workflow/DocumentClassifier/document_classifier.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ def main() -> None:
9393
raise ValueError(f"Details is not a dict in slice {doc_slices[0].id}")
9494

9595
external_sdgs = doc_slices[0].document.details.get(key_external_sdg, [])
96-
if external_sdgs and len(external_sdgs) > 0:
96+
if external_sdgs:
9797
logger.info(
9898
f"Document {doc_slices[0].document_id} was externally classified"
9999
)

0 commit comments

Comments
 (0)