diff --git a/indexgen.py b/indexgen.py index db53538..6b1d39f 100644 --- a/indexgen.py +++ b/indexgen.py @@ -131,7 +131,7 @@ def indexgen(): else: rank = "red" rankcode = re.sub(" ","",rank) - content.write("" + tcgcore.printcard("sig_" + variables.name.lower()) + "\n
" + firstdate.strftime("%Y-%m-%d") + "
" + datetime.datetime.today().strftime("%Y-%m-%d") + "
" + firstdate.strftime("%Y-%m-%d") + "
" + datetime.datetime.today().strftime("%Y-%m-%d") + "
") themassdecks = [] for card in massowned[series]: - themassdecks.append(card[:-2]) + try: + if card[:-2] in variables.masscollect[series]["decks"]: + themassdecks.append(card[:-2]) + except: + pass themassdecks = sorted(list(dict.fromkeys(themassdecks))) massmastered = [] for deck in themassdecks: diff --git a/setup.py b/setup.py index 268d699..01d89f9 100644 --- a/setup.py +++ b/setup.py @@ -1,7 +1,7 @@ import variables buildscript = open("build.sh","w") -buildscript.write("#!/usr/bin/env bash\n\npython3 generate.py\n\nrclone copy build " + variables.servername + ":" + variables.serverpath + " -P") +buildscript.write("#!/usr/bin/env bash\n\npython3 generate.py\n\nrclone copy build " + variables.servername + ":" + variables.serverpath + " -P -L") buildscript.close() if not os.path.exists("build/user.css"):