From 291efdb19e1c7203aa1ffd8fcaa95e82db6c5506 Mon Sep 17 00:00:00 2001 From: tritoch Date: Fri, 7 Jul 2017 00:20:44 -0500 Subject: [PATCH] =?UTF-8?q?Replace=20`-`=20in=20type=20line=20with=20`?= =?UTF-8?q?=E2=80=94`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- spoilers.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/spoilers.py b/spoilers.py index 9f554e8c..109b0f16 100644 --- a/spoilers.py +++ b/spoilers.py @@ -141,6 +141,8 @@ def error_check(mtgjson, card_corrections={}): if not 'subtypes' in card: errors.append( {"name": card['name'], "key": "subtypes", "value": ""}) + if '-' in card['type']: + card['type'] = card['type'].replace('-',u'—') if 'manaCost' in card: workingCMC = 0 stripCost = card['manaCost'].replace('{', '').replace('}', '')