Added support for new pricing fields
This commit is contained in:
parent
4e74177207
commit
fbd8aeb55f
|
@ -463,7 +463,7 @@ class CardsObject(FoundationObject):
|
||||||
return self.scryfallJson['edhrec_rank']
|
return self.scryfallJson['edhrec_rank']
|
||||||
|
|
||||||
def prices(self, mode):
|
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:
|
Args:
|
||||||
mode (string): The prices to get
|
mode (string): The prices to get
|
||||||
|
@ -474,7 +474,7 @@ class CardsObject(FoundationObject):
|
||||||
Returns:
|
Returns:
|
||||||
float: The prices as a float
|
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:
|
if mode not in modes:
|
||||||
raise KeyError("{} is not a key.".format(mode))
|
raise KeyError("{} is not a key.".format(mode))
|
||||||
|
|
||||||
|
@ -770,4 +770,4 @@ class CardsObject(FoundationObject):
|
||||||
"""
|
"""
|
||||||
super(CardsObject, self)._checkForKey('finishes')
|
super(CardsObject, self)._checkForKey('finishes')
|
||||||
|
|
||||||
return self.scryfallJson['finishes']
|
return self.scryfallJson['finishes']
|
Loading…
Reference in New Issue