Correct level calculation, remove specials from tradeable low priority list
This commit is contained in:
parent
e2f89e9793
commit
e9cda90ff2
2 changed files with 7 additions and 6 deletions
|
@ -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
|
- =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=
|
- =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
|
- =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
|
- =tradepost=: URL of your trade post on Dreamwidth
|
||||||
- =faves=: a list of cards to showcase on the index page
|
- =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
|
- =headerbackground=: an HTML colour to display behind your header image and set as a theme colour
|
||||||
|
|
|
@ -1014,7 +1014,7 @@ def indexgen():
|
||||||
rank = "puma"
|
rank = "puma"
|
||||||
elif len(cardlist) > 13500:
|
elif len(cardlist) > 13500:
|
||||||
rank = "chartreux"
|
rank = "chartreux"
|
||||||
elif len(cardlist) > 13500:
|
elif len(cardlist) > 13200:
|
||||||
rank = "russian blue"
|
rank = "russian blue"
|
||||||
elif len(cardlist) > 12900:
|
elif len(cardlist) > 12900:
|
||||||
rank = "panther"
|
rank = "panther"
|
||||||
|
@ -2011,6 +2011,7 @@ def searchgen():
|
||||||
precomma = False
|
precomma = False
|
||||||
for card in cardlist:
|
for card in cardlist:
|
||||||
if card["priority"] == 3:
|
if card["priority"] == 3:
|
||||||
|
if card["colour"] != "special":
|
||||||
if precomma:
|
if precomma:
|
||||||
content.write(", ")
|
content.write(", ")
|
||||||
content.write("'" + card["name"] + "'")
|
content.write("'" + card["name"] + "'")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue