Prefer a success when collapsing per-identifier probe answers
This commit is contained in:
1 parent
42808ab048
commit
4f4c8276b6
1 file changed
+5
-1
@@ -580,7 +580,11 @@ def _trusted_refs(doc: Doc, issue: Issue) -> Iterable[dict[str, Any]]:
|
||||
def _claim_coverage(group: Group, checked: dict[Check, ProviderPage], index: dict[str, Status], asset: Asset | None = None) -> list[Status]:
|
||||
statuses = []
|
||||
planned = _checks(group, asset)
|
||||
answers = {(check.source, check.native_id.upper()): page.status for check, page in checked.items()}
|
||||
answers: dict[tuple[str, str], Status] = {}
|
||||
for check, page in checked.items():
|
||||
key = (check.source, check.native_id.upper())
|
||||
if page.status.status == 'ok' or key not in answers:
|
||||
answers[key] = page.status
|
||||
for check in planned:
|
||||
actual = checked.get(check)
|
||||
if actual is None and check.url is not None:
|
||||
|
||||
Reference in new issue
Block a user