From 80c09b1e8865e338b6be54f1d68a4498b3e1895e Mon Sep 17 00:00:00 2001 From: tritoch Date: Sun, 2 Jul 2017 11:07:16 -0500 Subject: [PATCH] After MTGJSON adds the sets, we don't want them anymore. Goodbye spoiler season! --- main.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main.py b/main.py index a90fb297..85b5348e 100644 --- a/main.py +++ b/main.py @@ -86,6 +86,9 @@ if __name__ == '__main__': AllSets = spoilers.get_allsets() #get AllSets from mtgjson combinedjson = {} for setinfo in setinfos: + if setinfo['setname'] in AllSets: + print "Found set from set_info " +setinfo['setname']+ " in MTGJSON, not adding it" + continue if presets['oldRSS'] or 'noRSS' in setinfo and setinfo['noRSS']: mtgs = { "cards":[] } else: