From 448b2187c65149c977bcfc33f5e2e5d976e217dd Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?tr=C3=A9meur?=
Date: Sun, 3 Nov 2024 11:58:55 +0000
Subject: [PATCH] Add trading statement
---
README.org | 1 +
tradegen.py | 5 ++++-
variables-template.py | 1 +
3 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/README.org b/README.org
index cd95797..d6a22c9 100644
--- a/README.org
+++ b/README.org
@@ -27,6 +27,7 @@ Python scripts to generate a mobile-friendly static site for tracking tcg cards
- =british=: True if you want “grey” to display on the site, False if you want “gray”
- =collectthreshold=: minimum number of owned cards for putting a deck in the “collecting” category
- =keepsig=: True if you always want to keep one copy of your signature, False if you want to make them all available for trading
+ - =tradestatement=: statement to place on your trading page
- Run the following:
#+BEGIN_SRC bash
python3 setup.py
diff --git a/tradegen.py b/tradegen.py
index 6cbe77e..9fb7204 100644
--- a/tradegen.py
+++ b/tradegen.py
@@ -33,6 +33,9 @@ def tradegen(colour=False):
content.write("gray")
content.write("\">⚪ ✨ ✍")
content.write("
\n")
+ if len(variables.tradestatement) > 0:
+ content.write(variables.tradestatement + " ")
+ content.write("Trade cards here
\n")
for card in tcgcore.ownedcards():
if card[0:4] != "sig_":
if colour:
@@ -55,7 +58,7 @@ def tradegen(colour=False):
else:
for sig in siglist:
content.write(tcgcore.printcard(sig))
- content.write("
\nTrade cards here
\n")
+ content.write("\n")
content.close()
skel.footerwrite(thefile)
diff --git a/variables-template.py b/variables-template.py
index 09a8f2d..af7ca41 100644
--- a/variables-template.py
+++ b/variables-template.py
@@ -9,3 +9,4 @@ headerbackground = "#000000"
british = True
collectthreshold = 2
keepsig = False
+tradestatement = ""