Merge pull request #173 from Cockatrice/dev-id-dfc-xml-writer

Let xml writer handle back sides of DFC
This commit is contained in:
Dave 2017-09-18 12:46:12 -05:00 committed by GitHub
commit be76183d14

View File

@ -427,8 +427,9 @@ def write_xml(mtgjson, code, name, releaseDate):
# print mtgjson
for card in mtgjson["cards"]:
if 'names' in card:
if card["name"] == card['names'][1]:
continue
if 'layout' in card and card['layout'] != 'double-faced':
if card["name"] == card['names'][1]:
continue
if count == 0:
newest = card["name"]
count += 1