mirror of
https://github.com/Cockatrice/Magic-Spoiler.git
synced 2026-06-17 21:59:46 -05:00
Merge pull request #109 from tritoch/replace-typeline-dash
Replace `-` in type line with `—`
This commit is contained in:
commit
2b41643255
|
|
@ -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('}', '')
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user