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\n") + content.write("" + tcgcore.printcard("sig_" + variables.name.lower()) + "\n\n") crayred = 0 crayorange = 0 crayyellow = 0 diff --git a/massgen.py b/massgen.py index 86d5b78..111d6bb 100644 --- a/massgen.py +++ b/massgen.py @@ -62,7 +62,11 @@ def massseriesgen(series,massindex): content.write("

" + series + "

\n

back to mass decks page

\n

") 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"):