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 #54 from lentryd/patch-1
Browse files Browse the repository at this point in the history
Removed the unnecessary parameter, which leads to an error on latest versions of NSApi.

Previously this parameter was used to reduce size of `addresses` JSON.
  • Loading branch information
igorlanov authored May 7, 2022
2 parents 2a4cf5c + 6ae19e9 commit 185bdc9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion netschoolapi/netschoolapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ async def full_logout(self, requests_timeout: int = None):

async def _address(
self, school: str, requester: Requester) -> Dict[str, int]:
response = await requester('addresses/schools', params={'funcType': 2})
response = await requester('addresses/schools')

schools_reference = response.json()
for school_ in schools_reference:
Expand Down

0 comments on commit 185bdc9

Please sign in to comment.