fixed : tests
This commit is contained in:
@@ -400,8 +400,8 @@ async def _perform_search(
|
||||
|
||||
matches: List[Any] = []
|
||||
if hasattr(series_app, "search"):
|
||||
# SeriesApp.search is synchronous in core; call directly
|
||||
matches = series_app.search(validated_query)
|
||||
# SeriesApp.search is async; await the result
|
||||
matches = await series_app.search(validated_query)
|
||||
|
||||
summaries: List[AnimeSummary] = []
|
||||
for match in matches:
|
||||
|
||||
@@ -79,7 +79,8 @@ class ProgressUpdate:
|
||||
"percent": round(self.percent, 2),
|
||||
"current": self.current,
|
||||
"total": self.total,
|
||||
"metadata": self.metadata,
|
||||
# Make a copy to prevent mutation issues
|
||||
"metadata": self.metadata.copy(),
|
||||
"started_at": self.started_at.isoformat(),
|
||||
"updated_at": self.updated_at.isoformat(),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user