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

Commit

Permalink
fix: get all resp data
Browse files Browse the repository at this point in the history
  • Loading branch information
nm17 committed Feb 3, 2020
1 parent ea7ad9f commit a3fdf09
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions netschoolapi/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,4 @@ async def get_diary(
},
headers={"at": self.at},
)
return [
[Lesson().create(lesson_data) for lesson_data in day["lessons"]]
for day in resp.json()["weekDays"]
]
return resp.json()
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

setup(
name="netschoolapi",
version="0.1.0",
version="1.1.0",
packages=["netschoolapi"],
url="https://github.com/nm17/netschoolapi/",
license="MIT",
Expand Down

0 comments on commit a3fdf09

Please sign in to comment.