- 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 = {}
setStr = 'SetInfo:'
oracleStr = 'Oracle:'
nameList = []
getCardsInSet()
@@ -100,7 +101,7 @@ for fileName in nameList:
break
# Skip SetInfo lines
if line.find(setStr) == -1:
if line.find(setStr) == -1 and line.find(oracleStr) == -1:
card.lines += line +'\n'
line = file.readline().strip()

View File

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