Add trading statement

master
trémeur 3 weeks ago
parent cc59c175ec
commit 448b2187c6

@ -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” - =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 - =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 - =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: - Run the following:
#+BEGIN_SRC bash #+BEGIN_SRC bash
python3 setup.py python3 setup.py

@ -33,6 +33,9 @@ def tradegen(colour=False):
content.write("gray") content.write("gray")
content.write("\">⚪</a> <a href=\"/trade/special\" title=\"special\">✨</a> <a href=\"/trade/sig\" title=\"sig\">✍</a>") content.write("\">⚪</a> <a href=\"/trade/special\" title=\"special\">✨</a> <a href=\"/trade/sig\" title=\"sig\">✍</a>")
content.write("</p>\n<p>") content.write("</p>\n<p>")
if len(variables.tradestatement) > 0:
content.write(variables.tradestatement + " ")
content.write("Trade cards <a href=\"" + variables.tradepost + "\">here</a></p>\n<p>")
for card in tcgcore.ownedcards(): for card in tcgcore.ownedcards():
if card[0:4] != "sig_": if card[0:4] != "sig_":
if colour: if colour:
@ -55,7 +58,7 @@ def tradegen(colour=False):
else: else:
for sig in siglist: for sig in siglist:
content.write(tcgcore.printcard(sig)) content.write(tcgcore.printcard(sig))
content.write("</p>\n<p>Trade cards <a href=\"" + variables.tradepost + "\">here</a></p>\n") content.write("</p>\n")
content.close() content.close()
skel.footerwrite(thefile) skel.footerwrite(thefile)

@ -9,3 +9,4 @@ headerbackground = "#000000"
british = True british = True
collectthreshold = 2 collectthreshold = 2
keepsig = False keepsig = False
tradestatement = ""

Loading…
Cancel
Save