From 432ba1d028e01ec04b0ed20419d3757f51752e71 Mon Sep 17 00:00:00 2001 From: Dave Date: Mon, 18 Sep 2017 12:38:39 -0500 Subject: [PATCH] Let xml writer handle back sides of DFC --- spoilers.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/spoilers.py b/spoilers.py index 784b44a2..6601be90 100644 --- a/spoilers.py +++ b/spoilers.py @@ -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