From fbd8aeb55f8b18354a7edb0e78aea724b7b8078c Mon Sep 17 00:00:00 2001 From: NandaScott Date: Mon, 6 Sep 2021 12:17:40 -0400 Subject: [PATCH] Added support for new pricing fields --- scrython/cards/cards_object.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scrython/cards/cards_object.py b/scrython/cards/cards_object.py index 0b2e6d6..6e53de3 100644 --- a/scrython/cards/cards_object.py +++ b/scrython/cards/cards_object.py @@ -463,7 +463,7 @@ class CardsObject(FoundationObject): return self.scryfallJson['edhrec_rank'] def prices(self, mode): - """Returns prices from modes `usd`, `usd_foil`, `eur`, and `tix` + """Returns prices from modes `usd`, `usd_foil`, `usd_etched`, `usd_glossy`, `eur`, and `tix` Args: mode (string): The prices to get @@ -474,7 +474,7 @@ class CardsObject(FoundationObject): Returns: float: The prices as a float """ - modes = ['usd', 'usd_foil', 'eur', 'tix'] + modes = ['usd', 'usd_foil', 'usd_etched', 'usd_glossy', 'eur', 'tix'] if mode not in modes: raise KeyError("{} is not a key.".format(mode)) @@ -770,4 +770,4 @@ class CardsObject(FoundationObject): """ super(CardsObject, self)._checkForKey('finishes') - return self.scryfallJson['finishes'] + return self.scryfallJson['finishes'] \ No newline at end of file