Fix Scryfall Basic Land Rarity to match mtgjson

This commit is contained in:
Dave 2018-04-14 00:04:59 -05:00 committed by GitHub
parent 36c4eb7540
commit 1a6dbebdb5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -102,6 +102,8 @@ def convert_scryfall(scryfall):
card2['subtypes'] = cardsubtypes.split(' ')
else:
card2['subtypes'] = [cardsubtypes]
if 'Basic Land' in card['type_line']:
card2['rarity'] = "Basic Land"
if 'Legendary' in card['type_line']:
if card2.has_key('supertypes'):
card2['supertypes'].append('Legendary')