update and cleanup repo
This commit is contained in:
+2
-2
@@ -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 ""
|
||||
|
||||
Reference in New Issue
Block a user