diff --git a/README.org b/README.org index 6710f16..c866593 100644 --- a/README.org +++ b/README.org @@ -24,7 +24,7 @@ Python scripts to generate a mobile-friendly static site for tracking tcg cards - =sig=: set to =True= when you have a signature card - =banner=: set to =True= when you have a player banner, and save this in =build/assets/= as =banner.png= - =highpriority=: a list of high priority decks you’re collecting - - =trademedium=: whether to allow trading medium-priority cards away in exchange for high-priority cards + - =trademedium=: whether to allow trading medium-priority cards away in exchange for high-priority cards (special cards will not be listed as tradeable) - =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 diff --git a/colors.py b/colors.py index 1983a45..2ff3ba6 100644 --- a/colors.py +++ b/colors.py @@ -1014,7 +1014,7 @@ def indexgen(): rank = "puma" elif len(cardlist) > 13500: rank = "chartreux" - elif len(cardlist) > 13500: + elif len(cardlist) > 13200: rank = "russian blue" elif len(cardlist) > 12900: rank = "panther" @@ -2011,10 +2011,11 @@ def searchgen(): precomma = False for card in cardlist: if card["priority"] == 3: - if precomma: - content.write(", ") - content.write("'" + card["name"] + "'") - precomma = True + if card["colour"] != "special": + if precomma: + content.write(", ") + content.write("'" + card["name"] + "'") + precomma = True content.write("];\n const lpt = [") precomma = False for card in cardlist: