Added support for new pricing fields

This commit is contained in:
NandaScott 2021-09-06 12:17:40 -04:00
parent 4e74177207
commit fbd8aeb55f
1 changed files with 3 additions and 3 deletions

View File

@ -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']