update and cleanup repo

This commit is contained in:
2026-05-26 15:32:01 -07:00
parent 5041d9fbb9
commit 0db899d0c3
72 changed files with 788 additions and 1884 deletions
+2 -2
View File
@@ -277,12 +277,12 @@ def extract_records(doc_or_html: Any, base_url: Optional[str] = None, xpaths: Op
return normed, chosen
# Small convenience: convert records to SearchResult. Providers can call this or
# Small convenience: convert records to SearchResult. Plugins can call this or
# use their own mapping when they need full SearchResult objects.
from PluginCore.base import SearchResult # local import to avoid circular issues
def records_to_search_results(records: List[Dict[str, str]], table: str = "provider") -> List[SearchResult]:
def records_to_search_results(records: List[Dict[str, str]], table: str = "plugin") -> List[SearchResult]:
out: List[SearchResult] = []
for rec in records:
title = rec.get("title") or rec.get("name") or ""