Show full wanted cards list
This commit is contained in:
parent
aa820cfcee
commit
47fe3e4323
1 changed files with 9 additions and 1 deletions
10
colors.py
10
colors.py
|
@ -549,6 +549,7 @@ for theme in variables.masscollect:
|
|||
pass
|
||||
|
||||
wantedlist = sorted(wantedlist, key=lambda d: d["name"])
|
||||
wantedlist = sorted(wantedlist, key=lambda d: d["priority"])
|
||||
|
||||
removelist = []
|
||||
|
||||
|
@ -2348,8 +2349,15 @@ def wantedgen():
|
|||
thefile = "build/wanted/index.html"
|
||||
headerwrite(thefile,"wanted")
|
||||
content = open(thefile,"a")
|
||||
content.write("<h1>wanted cards</h1>\n<h2>High priority</h2>\n<textarea readonly>")
|
||||
content.write("<h1>wanted cards</h1>\n<h2>All cards in priority order (plain text only)</h2>\n<textarea readonly>")
|
||||
precomma = False
|
||||
for card in wantedlist:
|
||||
if precomma:
|
||||
content.write(", ")
|
||||
content.write(card["name"])
|
||||
precomma = True
|
||||
precomma = False
|
||||
content.write("</textarea>\n<h2>High priority</h2>\n<textarea readonly>")
|
||||
for card in wantedlist:
|
||||
if card["priority"] == 1:
|
||||
if precomma:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue