Update cards_object.py

Added modal_dfc layout type to the layout dict
This commit is contained in:
Aaron Jencks 2020-12-27 18:56:20 -06:00 committed by GitHub
parent 2c09d66742
commit 53253bf00f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -175,7 +175,8 @@ class CardsObject(FoundationObject):
'emblem': lambda num: self.scryfallJson['image_uris'], 'emblem': lambda num: self.scryfallJson['image_uris'],
'augment': lambda num: self.scryfallJson['image_uris'], 'augment': lambda num: self.scryfallJson['image_uris'],
'host': lambda num: self.scryfallJson['image_uris'], 'host': lambda num: self.scryfallJson['image_uris'],
'adventure': lambda num: self.scryfallJson['image_uris'] 'adventure': lambda num: self.scryfallJson['image_uris'],
'modal_dfc': lambda num: self.scryfallJson['card_faces'][num]['image_uris']
} }
image_types = { image_types = {
@ -747,4 +748,4 @@ class CardsObject(FoundationObject):
if key in self.scryfallJson['preview']: if key in self.scryfallJson['preview']:
return self.scryfallJson['preview'][key] return self.scryfallJson['preview'][key]
return self.scryfallJson['preview'] return self.scryfallJson['preview']