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

Commit c431902

Browse files
authored
Merge pull request #52 from megahomyak/master
Stupid goddamn attachments bug is now fixed
2 parents d85cd61 + f7be4b0 commit c431902

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

netschoolapi/netschoolapi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ async def attachments(
250250
response = response.json()
251251
if not response:
252252
return []
253-
attachments_json = response.json()[0]['attachments']
253+
attachments_json = response[0]['attachments']
254254
attachments = schemas.Attachment().load(attachments_json, many=True)
255255
return [data.Attachment(**attachment) for attachment in attachments]
256256

0 commit comments

Comments
 (0)