mirror of
https://github.com/Cockatrice/Magic-Spoiler.git
synced 2026-04-19 05:27:34 -05:00
Replace - in type line with —
This commit is contained in:
parent
c13a719944
commit
291efdb19e
|
|
@ -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('}', '')
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user