mirror of
https://github.com/Cockatrice/Magic-Spoiler.git
synced 2026-09-26 11:27:10 -05:00
Merge pull request #109 from tritoch/replace-typeline-dash
Replace `-` in type line with `—`
This commit is contained in:
@@ -153,6 +153,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('}', '')
|
||||
|
||||
Reference in New Issue
Block a user