From 4e741772075bdf3cc4427f75b886d054b74b9e01 Mon Sep 17 00:00:00 2001 From: NandaScott Date: Mon, 6 Sep 2021 12:08:26 -0400 Subject: [PATCH] Added support for the finishes attribute --- scrython/cards/cards_object.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/scrython/cards/cards_object.py b/scrython/cards/cards_object.py index d1f847b..0b2e6d6 100644 --- a/scrython/cards/cards_object.py +++ b/scrython/cards/cards_object.py @@ -760,3 +760,14 @@ class CardsObject(FoundationObject): super(CardsObject, self)._checkForKey('image_status') return self.scryfallJson['image_status'] + + def finishes(self): + """A list of computer-readable flags that indicate if this card + can come in foil, nonfoil, etched, or glossy finishes. + + Returns: + list: A list of all finishes. + """ + super(CardsObject, self)._checkForKey('finishes') + + return self.scryfallJson['finishes']