diff --git a/README.org b/README.org index 68ded3b..77a723a 100644 --- a/README.org +++ b/README.org @@ -24,9 +24,9 @@ Python scripts to generate a mobile-friendly static site for tracking tcg cards - =tradepost=: URL of your trade post on Dreamwidth - =faves=: a list of cards to showcase on the index page - =headerbackground=: an HTML colour to display behind your header image and set as a theme colour - - =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 - - =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 - =maxmastered=: maximum number of most recently mastered decks to show on the index page - Run the following: @@ -39,9 +39,10 @@ Python scripts to generate a mobile-friendly static site for tracking tcg cards - Add level images manually to =build/assets/levels/= - Add custom CSS to =build/user.css= *** Updating and building -- For each transaction, add a dictionary ={}= to the =log= list like in the example (removing any of ="received"=, ="lost"=, ="crayons"= that aren’t relevant). +- For each transaction, add a dictionary ={}= to the =log= list like in the example (removing any of ="received"=, ="lost"=, ="crayons"=, ="decks"= that aren’t relevant). - Run =./build.sh= in this directory to download the relevant card images and then upload everything to the server. ** Currently unaccounted for -- Portfolios -- Duplicates -- Masteries +- Duplicates (should be fine but not checked) +- Coupons +- Card search +- Date to level – needs redone diff --git a/build/style.css b/build/style.css index 870fa33..d0d742c 100644 --- a/build/style.css +++ b/build/style.css @@ -167,6 +167,8 @@ p#masteredcarousel img { /* portfolios */ a:has(div.foliocase) { text-decoration: none; + width: 230px; + display: block; } div.foliocase { @@ -196,6 +198,11 @@ table.portfolio tr:last-of-type { text-align: right; } +table.portfolio a { + color: unset; + text-decoration: none; +} + table.portfolio.palette { background: url("/assets/portfolio/palette.png"); background-repeat: no-repeat; diff --git a/collectinggen.py b/collectinggen.py index ca9b0f4..8dbda25 100644 --- a/collectinggen.py +++ b/collectinggen.py @@ -34,8 +34,7 @@ def collectinggen(colour=False): elif deck in variables.medpriority: medpriority.append(deck) else: - if tcgcore.collecting(deck): - lowpriority.append(deck) + lowpriority.append(deck) content.write(tcgcore.filterwrite("collecting",colour)) if len(highpriority) > 0: content.write("
" + event["date"].strftime("%Y-%m-%d") + "
[" + event["event"] + "]: ")
- try:
- if event["received"]:
- content.write("Received ")
- receivedlist = sorted(event["received"])
- position = 1
- for card in receivedlist:
- content.write(tcgcore.cardtext(card))
- if len(receivedlist) != position:
- content.write(", ")
- position += 1
- content.write(".")
- try:
- if event["lost"]:
- content.write(" ")
- except:
+ if event["event"] != "portfolio":
+ content.write("
" + event["date"].strftime("%Y-%m-%d") + "
[" + event["event"] + "]: ")
+ try:
+ if event["received"]:
+ content.write("Received ")
+ receivedlist = sorted(event["received"])
+ position = 1
+ for card in receivedlist:
+ content.write(tcgcore.cardtext(card))
+ if len(receivedlist) != position:
+ content.write(", ")
+ position += 1
+ content.write(".")
+ try:
+ if event["lost"]:
+ content.write(" ")
+ except:
+ try:
+ if event["crayons"]:
+ content.write(" ")
+ except:
+ pass
+ except:
+ pass
+ try:
+ if event["lost"]:
+ content.write("Lost ")
+ lostlist = sorted(event["lost"])
+ position = 1
+ for card in lostlist:
+ content.write(tcgcore.cardtext(card))
+ if len(lostlist) != position:
+ content.write(", ")
+ position += 1
+ content.write(".")
try:
if event["crayons"]:
content.write(" ")
except:
pass
- except:
- pass
- try:
- if event["lost"]:
- content.write("Lost ")
- lostlist = sorted(event["lost"])
- position = 1
- for card in lostlist:
- content.write(tcgcore.cardtext(card))
- if len(lostlist) != position:
- content.write(", ")
- position += 1
- content.write(".")
- try:
- if event["crayons"]:
- content.write(" ")
- except:
- pass
- except:
- pass
- try:
- if event["crayons"]:
- content.write("Crayons: ")
- try:
- content.write(crayonlog("red",event))
- if list(event["crayons"])[-1] != "red":
- content.write(", ")
- except:
- pass
- try:
- content.write(crayonlog("orange",event))
- if list(event["crayons"])[-1] != "orange":
- content.write(", ")
- except:
- pass
- try:
- content.write(crayonlog("yellow",event))
- if list(event["crayons"])[-1] != "yellow":
- content.write(", ")
- except:
- pass
- try:
- content.write(crayonlog("green",event))
- if list(event["crayons"])[-1] != "green":
- content.write(", ")
- except:
- pass
- try:
- content.write(crayonlog("blue",event))
- if list(event["crayons"])[-1] != "blue":
- content.write(", ")
- except:
- pass
- try:
- content.write(crayonlog("purple",event))
- if list(event["crayons"])[-1] != "purple":
- content.write(", ")
- except:
- pass
- try:
- content.write(crayonlog("brown",event))
- if list(event["crayons"])[-1] != "brown":
- content.write(", ")
- except:
- pass
- try:
- content.write(crayonlog("gray",event))
- except:
- pass
- content.write(".")
- except:
- pass
- content.write("