mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 19:28:01 +00:00
- Update PerSetTracking.py to tabulate all Names of a card (better handling for second half of split card names)
This commit is contained in:
@@ -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.")
|
||||
|
||||
Reference in New Issue
Block a user