PerSetTracking.py was replacing "AE" with "Ae" when parsing Forge, but not when parsing mtg-data resulting is falsely missing cards.

This commit is contained in:
jendave
2011-08-06 20:20:13 +00:00
parent ec580d85c7
commit a603231ffb

View File

@@ -40,6 +40,7 @@ with open(pathToMtgData) as mtgdata :
if not hasFetchedCardName :
tmpName = line
tmpName = tmpName.rstrip()
tmpName = tmpName.replace("AE", "Ae")
hasFetchedCardName = True
if line == "\n" :
mtgDataCards[tmpName] = prevline.rstrip()
@@ -71,8 +72,13 @@ for currentSet in setCodes :
if currentSet == 'UNH' or currentSet == 'UGL' : continue #skip Unhinged and Unglued since they are only counting basic lands anyway
#if currentSet == 'VG1' or currentSet == 'VG2' or currentSet == 'VG3' : continue
#if currentSet == 'VG4' or currentSet == 'VGO' or currentSet == 'VG ' : continue
#if currentSet == 'FVD' or currentSet == 'FVE' or currentSet == 'FVR' : continue
#if currentSet == 'SDC' or currentSet == 'AST' or currentSet == 'DKM' : continue
#if currentSet == 'ATH' or currentSet == 'MBS' : continue
#if currentSet == 'BTD' or currentSet == 'ARC' or currentSet == 'COM' : continue
#if currentSet == 'CHR' or currentSet == 'MED' or currentSet == 'H09' : continue
#if currentSet == 'ME2' or currentSet == 'ME3' or currentSet == 'ME4' : continue
#if currentSet == 'ATH' or currentSet == 'HOP' or currentSet == 'BRB' : continue
#if currentSet == 'EVG' or currentSet == 'GVL' or currentSet == 'JVC' : continue
for card in mtgDataCards.keys() :
if mtgDataCards[card].count(currentSet) > 0 :
if card in forgeCards :