f
This commit is contained in:
@@ -3520,32 +3520,6 @@ def check_url_exists_in_storage(
|
||||
continue
|
||||
|
||||
if not backend_hits:
|
||||
fallback_hits: List[Dict[str, Any]] = []
|
||||
try:
|
||||
fallback_hits = backend.search("url:*", limit=200) or []
|
||||
except Exception:
|
||||
fallback_hits = []
|
||||
|
||||
for hit in fallback_hits:
|
||||
url_values = _extract_urls_from_hit(hit, backend, allow_backend_lookup=True)
|
||||
|
||||
if not url_values:
|
||||
continue
|
||||
|
||||
matched = False
|
||||
for url_value in url_values:
|
||||
for needle in (needles or []):
|
||||
if _match_normalized_url(str(needle or ""), str(url_value or "")):
|
||||
matched = True
|
||||
break
|
||||
if matched:
|
||||
break
|
||||
|
||||
if not matched:
|
||||
continue
|
||||
|
||||
return _build_display_row_for_hit(hit, backend_name, original_url)
|
||||
|
||||
return None
|
||||
|
||||
hit = backend_hits[0]
|
||||
|
||||
Reference in New Issue
Block a user