From 804150946b896b2b665aed2ef7a29c405d7252a5 Mon Sep 17 00:00:00 2001 From: Luke Date: Fri, 16 Jul 2021 15:36:02 +0200 Subject: [PATCH] add support to class cards MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit With the new expansion "forgotten realms", they added a new type of cards: class cards. This is one example [cleric class json response](https://api.scryfall.com/cards/47ce8b7e-d8e1-489a-a69e-99089eeb8739?format=json&pretty=true) and [cleric class scryfall view](https://scryfall.com/card/afr/6/cleric-class). So basically I added a one-liner to support them. Can you please merge the PR? Thanks! 😄 --- scrython/cards/cards_object.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scrython/cards/cards_object.py b/scrython/cards/cards_object.py index 6451ec2..d1f847b 100644 --- a/scrython/cards/cards_object.py +++ b/scrython/cards/cards_object.py @@ -167,6 +167,7 @@ class CardsObject(FoundationObject): 'meld': lambda num: self.scryfallJson['image_uris'], 'leveler': lambda num: self.scryfallJson['image_uris'], 'saga': lambda num: self.scryfallJson['image_uris'], + 'class': lambda num: self.scryfallJson['image_uris'], 'planar': lambda num: self.scryfallJson['image_uris'], 'scheme': lambda num: self.scryfallJson['image_uris'], 'vanguard': lambda num: self.scryfallJson['image_uris'], @@ -758,4 +759,4 @@ class CardsObject(FoundationObject): """ super(CardsObject, self)._checkForKey('image_status') - return self.scryfallJson['image_status'] \ No newline at end of file + return self.scryfallJson['image_status']