From 7af572d0e7c298a8cb82e23c88f8e70183356d1c Mon Sep 17 00:00:00 2001 From: pablodanswer Date: Thu, 12 Sep 2024 09:01:17 -0700 Subject: [PATCH] display only failed (#2413) --- backend/danswer/server/documents/connector.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/backend/danswer/server/documents/connector.py b/backend/danswer/server/documents/connector.py index 2702e4f6c..129a901ab 100644 --- a/backend/danswer/server/documents/connector.py +++ b/backend/danswer/server/documents/connector.py @@ -422,15 +422,11 @@ def get_currently_failed_indexing_status( ) ] - # Filter cc_pairs to include only those with failed attempts or no attempts + # Filter cc_pairs to include only those with failed attempts cc_pairs = [ cc_pair for cc_pair in cc_pairs - if not any( - attempt.connector_credential_pair == cc_pair - for attempt in latest_failed_indexing_attempts - ) - or any( + if any( attempt.connector_credential_pair == cc_pair for attempt in filtered_failed_attempts )