Show full wanted cards list

This commit is contained in:
mez 2025-06-17 20:27:40 +01:00
parent aa820cfcee
commit 47fe3e4323

View file

@ -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: