- Update PerSetTracking.py to tabulate all Names of a card (better handling for second half of split card names)

This commit is contained in:
Sol
2013-03-09 19:14:51 +00:00
parent cd4203e75e
commit 3c2ac63339

View File

@@ -134,10 +134,10 @@ if __name__ == '__main__':
for root, dirnames, filenames in os.walk("cardsfolder"):
for fileName in fnmatch.filter(filenames, '*.txt'):
with open(os.path.join(root, fileName)) as currentForgeCard :
tmpname = currentForgeCard.readline()
tmpname = tmpname[5:].replace("AE","Ae")
tmpname = tmpname.rstrip()
forgeCards.append(tmpname)
# Check all names for this card
for line in currentForgeCard.readlines():
if line.startswith("Name:"):
forgeCards.append(line[5:].replace("AE","Ae").rstrip())
#Compare datasets and output results
print("Comparing datasets and outputting results.")