mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-03-26 17:51:54 +01:00
display only failed (#2413)
This commit is contained in:
parent
58bdf9d684
commit
7af572d0e7
@ -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
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user