Skip to content
This repository has been archived by the owner on Sep 22, 2024. It is now read-only.

Commit

Permalink
Refactor school search URLs in NetSchoolAPI
Browse files Browse the repository at this point in the history
  • Loading branch information
lentryd committed Sep 12, 2024
1 parent 500e509 commit b052a3e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions netschoolapi/netschoolapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ async def schools(
resp = await self._wrapped_client.request(
requests_timeout,
self._wrapped_client.client.build_request(
method="GET", url="schools/search",
method="GET", url="schools/search?name=Y",
)
)
schools = schemas.ShortSchoolSchema().load(resp.json(), many=True)
Expand All @@ -318,7 +318,7 @@ async def _get_school_id(
schools = (await requester(
self._wrapped_client.client.build_request(
method="GET",
url="schools/search",
url=f"schools/search?name={school_name}",
)
)).json()

Expand Down

0 comments on commit b052a3e

Please sign in to comment.