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

Commit

Permalink
Merge pull request #66 from lentryd/master
Browse files Browse the repository at this point in the history
Refactor school search URLs in NetSchoolAPI
  • Loading branch information
nm17 authored Sep 14, 2024
2 parents 500e509 + 52f00a2 commit 227e597
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=У",
)
)
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 227e597

Please sign in to comment.