Check MTGS against Scryfall too

This commit is contained in:
tritoch
2017-06-06 15:34:25 -05:00
parent 19add21493
commit b0a1cc429b

View File

@@ -578,6 +578,17 @@ def smash_mtgs_scryfall(mtgs, scryfall):
if key in mtgscard:
if not mtgscard[key] == scryfallcard[key]:
print "Mtgs has key %s as %s and\nScryfall has %s" % (key, mtgscard[key], scryfallcard[key])
cardFound = True
if not cardFound:
print "MTGS has card %s and Scryfall does not." % mtgscard['name']
for scryfallcard in scryfall['cards']:
cardFound = False
for mtgscard in mtgs['cards']:
if scryfallcard['name'] == mtgscard['name']:
cardFound = True
if not cardFound:
print "Scryfall has card %s and MTGS does not." % scryfallcard['name']
return mtgs
def scrape_fullspoil(url, showRarityColors=False, showFrameColors=False, manual_cards=[], delete_cards=[], split_cards=[]):