use rstrip() in PerSetTracking.py script when pulling out cardnames. I was getting a few cards as "Missing" that in fact were implemented. I spot-checked the entire revised set. Results now match my manual list.

This commit is contained in:
jendave
2011-08-06 15:28:20 +00:00
parent 8b8f9f4c70
commit b708338b12

View File

@@ -39,10 +39,10 @@ with open(pathToMtgData) as mtgdata :
if hasFetchedSets :
if not hasFetchedCardName :
tmpName = line
tmpName = tmpName.replace('\n','')
tmpName = tmpName.rstrip()
hasFetchedCardName = True
if line == "\n" :
mtgDataCards[tmpName] = prevline.replace('\n', '')
mtgDataCards[tmpName] = prevline.rstrip()
hasFetchedCardName = False
prevline = line
@@ -56,7 +56,7 @@ for file in forgeFolderFiles :
with open(sys.path[0] + os.sep + "cardsfolder" + os.sep + file) as currentForgeCard :
tmpname = currentForgeCard.readline()
tmpname = tmpname[5:].replace("AE","Ae")
tmpname = tmpname.replace('\r\n', '')
tmpname = tmpname.rstrip()
forgeCards.append(tmpname)