- Small fix to scripts

This commit is contained in:
Sol
2012-07-06 13:27:43 +00:00
parent da727f8760
commit 825be1bafc
2 changed files with 3 additions and 2 deletions

View File

@@ -63,6 +63,7 @@ setAbbr = sys.argv[1]
cardDict = {} cardDict = {}
setStr = 'SetInfo:' setStr = 'SetInfo:'
oracleStr = 'Oracle:'
nameList = [] nameList = []
getCardsInSet() getCardsInSet()
@@ -100,7 +101,7 @@ for fileName in nameList:
break break
# Skip SetInfo lines # Skip SetInfo lines
if line.find(setStr) == -1: if line.find(setStr) == -1 and line.find(oracleStr) == -1:
card.lines += line +'\n' card.lines += line +'\n'
line = file.readline().strip() line = file.readline().strip()

View File

@@ -40,7 +40,7 @@ def initSets():
allSets['Magic 2010'] = 'M10' allSets['Magic 2010'] = 'M10'
allSets['Magic 2011'] = 'M11' allSets['Magic 2011'] = 'M11'
allSets['Magic 2012'] = 'M12' allSets['Magic 2012'] = 'M12'
allSets['Magic 2012'] = 'M13' allSets['Magic 2013'] = 'M13'
# Multiplayer Sets # Multiplayer Sets
allSets['Commander'] = 'COM' allSets['Commander'] = 'COM'