From f9961bf6d4e9b258e7076ad6f68f13214b4bbf95 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?tr=C3=A9meur?=
Date: Tue, 17 Dec 2024 23:37:09 +0000
Subject: [PATCH] Add some more classes for CSS
---
README.org | 1 +
build.sh | 2 +-
indexgen.py | 8 +++++++-
massgen.py | 8 +++++++-
tcgcore.py | 12 +++++++++---
variables-template.py | 1 +
6 files changed, 26 insertions(+), 6 deletions(-)
diff --git a/README.org b/README.org
index 8e4135b..10fe483 100644
--- a/README.org
+++ b/README.org
@@ -31,6 +31,7 @@ Python scripts to generate a mobile-friendly static site for tracking tcg cards
- =tradestatement=: statement to place on your trading page
- =maxmastered=: maximum number of most recently mastered decks to show on the index page
- =ownedpage=: =True= if you want a page displaying your entire collection, =False= otherwise
+ - =firstmasteries=: a list of decks you mastered first
- =masscollect=: list (python dict) of series/themes being mass collected and which decks to include in each one
- Run the following:
#+BEGIN_SRC bash
diff --git a/build.sh b/build.sh
index de1e62b..38212c1 100755
--- a/build.sh
+++ b/build.sh
@@ -2,4 +2,4 @@
python3 generate.py
-rclone copy build prazevps:/var/www/tcg/public -P
+rclone copy build prazevps:/var/www/tcg/public -P -L
diff --git a/indexgen.py b/indexgen.py
index bd936ce..db53538 100644
--- a/indexgen.py
+++ b/indexgen.py
@@ -248,7 +248,13 @@ def indexgen():
masteredcount = 0
for deck in mastereddecks:
if masteredcount < variables.maxmastered:
- content.write("")
+ content.write("")
masteredcount += 1
if len(mastereddecks) > variables.maxmastered:
content.write(" see all")
diff --git a/massgen.py b/massgen.py
index eb6b00b..8471f8c 100644
--- a/massgen.py
+++ b/massgen.py
@@ -53,7 +53,13 @@ def massseriesgen(series,massindex):
massmastered.append(deck)
if len(massmastered) > 0:
for deck in massmastered:
- content.write("")
+ content.write("")
content.write("
")
for card in massowned[series]:
content.write(tcgcore.printcard(card))
diff --git a/tcgcore.py b/tcgcore.py
index 274bbf9..fb408a4 100644
--- a/tcgcore.py
+++ b/tcgcore.py
@@ -195,7 +195,13 @@ def printdeck(deck,fold=True):
deckstring += " \n"
test += 1
if deckmastered(deck):
- deckstring += "
\n | \n |
\n"
+ deckstring += " \n | \n |
\n"
deckstring += "\n\n"
if fold:
deckstring += "\n"
@@ -204,7 +210,7 @@ def printdeck(deck,fold=True):
def filterwrite(page,colour=False,sigs=False):
filterstring = ""
if colour:
- filterstring += "Filtered to "
+ filterstring += "Filtered to "
if colour == "gray":
if variables.british:
filterstring += "grey"
@@ -212,7 +218,7 @@ def filterwrite(page,colour=False,sigs=False):
filterstring += "gray"
else:
filterstring += colour
- filterstring += ". Show all"
+ filterstring += ". Show all"
else:
filterstring += "Filter: 🔴 🟠🟡 🟢 🔵 🟣 🟤