From 240a4f67f3a929f253a319a72627f1f5626e5fb3 Mon Sep 17 00:00:00 2001 From: reimannsum Date: Thu, 29 Oct 2015 10:24:31 -0400 Subject: [PATCH] fix for cards wuth rarity now without legacy support, due to revision updating from legacy version --- sortcards.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sortcards.py b/sortcards.py index df3431e..0c688b1 100644 --- a/sortcards.py +++ b/sortcards.py @@ -91,10 +91,10 @@ def sortcards(cards): # color classes need to find the mana cost fields = card.split('|') - if len(fields) != 10: + if len(fields) != 11: classes['unknown color'] += [card] else: - cost = fields[7] + cost = fields[8] 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: