|
|
|
@ -15,23 +15,21 @@ def wantedgen():
|
|
|
|
|
if card[0:4] != "sig_":
|
|
|
|
|
decksofinterest.append(card[:-2])
|
|
|
|
|
decksofinterest = sorted(list(dict.fromkeys(decksofinterest)))
|
|
|
|
|
wantedcards = []
|
|
|
|
|
highpriority = []
|
|
|
|
|
medpriority = []
|
|
|
|
|
lowpriority = []
|
|
|
|
|
for deck in decksofinterest:
|
|
|
|
|
if tcgcore.collecting(deck):
|
|
|
|
|
wantedlist = ["01","02","03","04","05","06","07","08","09","10","11","12","13","14","15","16","17","18","19","20"]
|
|
|
|
|
for card in wantedlist:
|
|
|
|
|
combined = deck + card
|
|
|
|
|
if combined not in tcgcore.ownedcards():
|
|
|
|
|
wantedcards.append(combined)
|
|
|
|
|
highpriority = []
|
|
|
|
|
medpriority = []
|
|
|
|
|
lowpriority = []
|
|
|
|
|
for card in wantedcards:
|
|
|
|
|
if tcgcore.priority(card[:-2]) == "high":
|
|
|
|
|
highpriority.append(card)
|
|
|
|
|
elif tcgcore.priority(card[:-2]) == "medium":
|
|
|
|
|
medpriority.append(card)
|
|
|
|
|
elif tcgcore.priority(card[:-2]) == "low":
|
|
|
|
|
lowpriority.append(card)
|
|
|
|
|
if tcgcore.priority(deck) == "high":
|
|
|
|
|
highpriority.append(combined)
|
|
|
|
|
elif tcgcore.priority(deck) == "medium":
|
|
|
|
|
medpriority.append(combined)
|
|
|
|
|
elif tcgcore.priority(deck) == "low":
|
|
|
|
|
lowpriority.append(combined)
|
|
|
|
|
if len(highpriority) > 0:
|
|
|
|
|
content.write("<h2>High priority</h2>\n<textarea readonly>" + ", ".join(highpriority) + "</textarea>\n<p>")
|
|
|
|
|
for card in highpriority:
|
|
|
|
|