Merge pull request #1 from reimannsum/patch-1
fix for cards with rarity
This commit is contained in:
commit
91ed957010
1 changed files with 2 additions and 2 deletions
|
@ -91,10 +91,10 @@ def sortcards(cards):
|
||||||
|
|
||||||
# color classes need to find the mana cost
|
# color classes need to find the mana cost
|
||||||
fields = card.split('|')
|
fields = card.split('|')
|
||||||
if len(fields) != 10:
|
if len(fields) != 11:
|
||||||
classes['unknown color'] += [card]
|
classes['unknown color'] += [card]
|
||||||
else:
|
else:
|
||||||
cost = fields[7]
|
cost = fields[8]
|
||||||
color_count = 0
|
color_count = 0
|
||||||
if 'W' in cost or 'U' in cost or 'B' in cost or 'R' in cost or 'G' in cost:
|
if 'W' in cost or 'U' in cost or 'B' in cost or 'R' in cost or 'G' in cost:
|
||||||
if 'W' in cost:
|
if 'W' in cost:
|
||||||
|
|
Loading…
Reference in a new issue