Fix ShareAttachment GraphQL source parsing

Fixes #418
This commit is contained in:
Mads Marquart
2019-04-25 22:57:58 +02:00
parent f834c01921
commit db2bda1f9b

View File

@@ -66,7 +66,7 @@ class ShareAttachment(Attachment):
description=data["description"].get("text") description=data["description"].get("text")
if data.get("description") if data.get("description")
else None, else None,
source=data["source"].get("text"), source=data["source"].get("text") if data.get("source") else None,
attachments=[ attachments=[
_file.graphql_to_subattachment(attachment) _file.graphql_to_subattachment(attachment)
for attachment in data.get("subattachments") for attachment in data.get("subattachments")