Skip to content

Commit cc986ea

Browse files
author
alex-omophub
committed
Refactor AsyncSearch to simplify API request handling
- Streamlined the code in the `AsyncSearch` class by consolidating the API request to a single line for improved readability and maintainability.
1 parent d5cb814 commit cc986ea

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/omophub/resources/search.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -690,9 +690,7 @@ async def fetch_page(
690690
if threshold is not None:
691691
params["threshold"] = threshold
692692

693-
result = await self._request.get_raw(
694-
"/search/semantic", params=params
695-
)
693+
result = await self._request.get_raw("/search/semantic", params=params)
696694

697695
data = result.get("data", [])
698696
results = data.get("results", data) if isinstance(data, dict) else data

0 commit comments

Comments
 (0)