mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 10:48:00 +00:00
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:
@@ -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)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user