Words
41
Reading
1 min
Listen
Play
2y
Hey Kalkulus,
Already an update again 👍.
Not sure where and when you want to use it because this information is also in the get_card_data_raw()
You can also consider using enums to increase readability in stead of the numbers example:
class ExtendedEnum(Enum):
@classmethod
def list_names(cls):
return list(map(lambda c: c.name, cls))
@classmethod
def list_values(cls):
return list(map(lambda c: c.value, cls))
class Edition(ExtendedEnum):
alpha = 0
beta = 1
promo = 2
reward = 3
untamed = 4
dice = 5
gladius = 6
chaos = 7
rift = 8
soulbound = 10
rebellion = 12
soulboundrb = 13
usages:
Edition(2).name
Edition.soulbound.value
Edition.list_names()
Edition.list_values()
RE: Updates to spltools, downloading settings and identifying the set of a card.