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 root, dirnames, filenames in os.walk("cardsfolder"):
|
||||||
for fileName in fnmatch.filter(filenames, '*.txt'):
|
for fileName in fnmatch.filter(filenames, '*.txt'):
|
||||||
with open(os.path.join(root, fileName)) as currentForgeCard :
|
with open(os.path.join(root, fileName)) as currentForgeCard :
|
||||||
tmpname = currentForgeCard.readline()
|
# Check all names for this card
|
||||||
tmpname = tmpname[5:].replace("AE","Ae")
|
for line in currentForgeCard.readlines():
|
||||||
tmpname = tmpname.rstrip()
|
if line.startswith("Name:"):
|
||||||
forgeCards.append(tmpname)
|
forgeCards.append(line[5:].replace("AE","Ae").rstrip())
|
||||||
|
|
||||||
#Compare datasets and output results
|
#Compare datasets and output results
|
||||||
print("Comparing datasets and outputting results.")
|
print("Comparing datasets and outputting results.")
|
||||||
|
|||||||
Reference in New Issue
Block a user