df
This commit is contained in:
@@ -26,8 +26,7 @@ class SearchResult:
|
||||
|
||||
def to_dict(self) -> Dict[str, Any]:
|
||||
"""Convert to dictionary for pipeline processing."""
|
||||
|
||||
return {
|
||||
out = {
|
||||
"table": self.table,
|
||||
"title": self.title,
|
||||
"path": self.path,
|
||||
@@ -40,6 +39,15 @@ class SearchResult:
|
||||
"full_metadata": self.full_metadata,
|
||||
}
|
||||
|
||||
try:
|
||||
url_value = getattr(self, "url", None)
|
||||
if url_value is not None:
|
||||
out["url"] = url_value
|
||||
except Exception:
|
||||
pass
|
||||
|
||||
return out
|
||||
|
||||
|
||||
class Provider(ABC):
|
||||
"""Unified provider base class.
|
||||
|
||||
Reference in New Issue
Block a user