From 409d6c48939fbe91b2465447d7e9134ccc013a87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?tr=C3=A9meur?= Date: Wed, 18 Dec 2024 22:19:29 +0000 Subject: [PATCH] misc fixes --- indexgen.py | 2 +- massgen.py | 6 +++++- setup.py | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) 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"):