diff --git a/spoilers.py b/spoilers.py index 8d89e6b3..94c988f6 100644 --- a/spoilers.py +++ b/spoilers.py @@ -305,6 +305,8 @@ def error_check(mtgjson, card_corrections={}): for correctionType in card_corrections[cardCorrection]: # if not correctionType in card and correctionType not in : # sys.exit("Invalid correction for " + cardCorrection + " of type " + card) + if correctionType = 'number': + card_corrections[cardCorrection]['number'] = str(card_corrections[cardCorrection]['number']) if not correctionType == 'name': if correctionType == 'img': card['url'] = card_corrections[cardCorrection][correctionType]