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 #52 from megahomyak/master
Browse files Browse the repository at this point in the history
Stupid goddamn attachments bug is now fixed
  • Loading branch information
megahomyak authored Mar 14, 2022
2 parents d85cd61 + f7be4b0 commit c431902
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 @@ -250,7 +250,7 @@ async def attachments(
response = response.json()
if not response:
return []
attachments_json = response.json()[0]['attachments']
attachments_json = response[0]['attachments']
attachments = schemas.Attachment().load(attachments_json, many=True)
return [data.Attachment(**attachment) for attachment in attachments]

Expand Down

0 comments on commit c431902

Please sign in to comment.