Updated sets to current standards
This commit is contained in:
parent
294025e178
commit
f03d4586fa
|
@ -29,7 +29,7 @@ class Sets(SetsObject):
|
||||||
set_parent_set_code(num) : str ........ The set code for the parent set.
|
set_parent_set_code(num) : str ........ The set code for the parent set.
|
||||||
set_card_count(num) : int .............. The number of cards in the set.
|
set_card_count(num) : int .............. The number of cards in the set.
|
||||||
set_digital(num) : bool ..... True if this set is only featured on MTGO.
|
set_digital(num) : bool ..... True if this set is only featured on MTGO.
|
||||||
set_foil(num) : bool .................. True if this set only has foils.
|
set_foil_only(num) : bool ............. True if this set only has foils.
|
||||||
set_icon_svg_uri(num) : str ........ A URI to the SVG of the set symbol.
|
set_icon_svg_uri(num) : str ........ A URI to the SVG of the set symbol.
|
||||||
set_search_uri(num) : str ......... The scryfall API url for the search.
|
set_search_uri(num) : str ......... The scryfall API url for the search.
|
||||||
|
|
||||||
|
@ -116,10 +116,10 @@ class Sets(SetsObject):
|
||||||
|
|
||||||
return self.scryfallJson['data'][num]['digital']
|
return self.scryfallJson['data'][num]['digital']
|
||||||
|
|
||||||
def set_foil(self, num):
|
def set_foil_only(self, num):
|
||||||
super(Sets, self)._checkForTupleKey('data', num, 'foil')
|
super(Sets, self)._checkForTupleKey('data', num, 'foil_only')
|
||||||
|
|
||||||
return self.scryfallJson['data'][num]['foil']
|
return self.scryfallJson['data'][num]['foil_only']
|
||||||
|
|
||||||
def set_icon_svg_uri(self, num):
|
def set_icon_svg_uri(self, num):
|
||||||
super(Sets, self)._checkForTupleKey('data', num, 'icon_svg_uri')
|
super(Sets, self)._checkForTupleKey('data', num, 'icon_svg_uri')
|
||||||
|
@ -164,8 +164,8 @@ class Sets(SetsObject):
|
||||||
def digital(self):
|
def digital(self):
|
||||||
raise AttributeError('This object has no key \'digital\'')
|
raise AttributeError('This object has no key \'digital\'')
|
||||||
|
|
||||||
def foil(self):
|
def foil_only(self):
|
||||||
raise AttributeError('This object has no key \'foil\'')
|
raise AttributeError('This object has no key \'foil_only\'')
|
||||||
|
|
||||||
def icon_svg_uri(self):
|
def icon_svg_uri(self):
|
||||||
raise AttributeError('This object has no key \'icon_svg_uri\'')
|
raise AttributeError('This object has no key \'icon_svg_uri\'')
|
||||||
|
|
|
@ -26,7 +26,7 @@ class SetsObject(object):
|
||||||
parent_set_code : str ................. The set code for the parent set.
|
parent_set_code : str ................. The set code for the parent set.
|
||||||
card_count : int ...................... The number of cards in the set.
|
card_count : int ...................... The number of cards in the set.
|
||||||
digital : bool .............. True if this set is only featured on MTGO.
|
digital : bool .............. True if this set is only featured on MTGO.
|
||||||
foil : bool ........................... True if this set only has foils.
|
foil_only : bool ........................... True if this set only has foils.
|
||||||
icon_svg_uri : str ................ A URI to the SVG of the set symbol.
|
icon_svg_uri : str ................ A URI to the SVG of the set symbol.
|
||||||
search_uri : str .................. The scryfall API url for the search.
|
search_uri : str .................. The scryfall API url for the search.
|
||||||
"""
|
"""
|
||||||
|
@ -120,10 +120,10 @@ class SetsObject(object):
|
||||||
|
|
||||||
return self.scryfallJson['digital']
|
return self.scryfallJson['digital']
|
||||||
|
|
||||||
def foil(self):
|
def foil_only(self):
|
||||||
self._checkForKey('foil')
|
self._checkForKey('foil_only')
|
||||||
|
|
||||||
return self.scryfallJson['foil']
|
return self.scryfallJson['foil_only']
|
||||||
|
|
||||||
def icon_svg_uri(self):
|
def icon_svg_uri(self):
|
||||||
self._checkForKey('icon_svg_uri')
|
self._checkForKey('icon_svg_uri')
|
||||||
|
|
Loading…
Reference in New Issue