From 3c2ac63339d2eb25e6a0b98378e7f08233324816 Mon Sep 17 00:00:00 2001 From: Sol Date: Sat, 9 Mar 2013 19:14:51 +0000 Subject: [PATCH] - Update PerSetTracking.py to tabulate all Names of a card (better handling for second half of split card names) --- res/PerSetTracking.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/res/PerSetTracking.py b/res/PerSetTracking.py index edee41d7aa5..b5edae4875f 100755 --- a/res/PerSetTracking.py +++ b/res/PerSetTracking.py @@ -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.")