|
|
|
@ -10,23 +10,21 @@ def wantedgen():
|
|
|
|
|
skel.headerwrite(thefile,"wanted")
|
|
|
|
|
content = open(thefile,"a")
|
|
|
|
|
content.write("<h1>wanted cards</h1>\n")
|
|
|
|
|
ownedcards = []
|
|
|
|
|
decksofinterest = []
|
|
|
|
|
for event in log.log:
|
|
|
|
|
try:
|
|
|
|
|
for card in event["received"]:
|
|
|
|
|
ownedcards.append(card)
|
|
|
|
|
if card[0:4] != "sig_":
|
|
|
|
|
decksofinterest.append(card[:-2])
|
|
|
|
|
except:
|
|
|
|
|
pass
|
|
|
|
|
ownedcards = sorted(ownedcards)
|
|
|
|
|
decksofinterest = sorted(list(dict.fromkeys(decksofinterest)))
|
|
|
|
|
wantedcards = []
|
|
|
|
|
for deck in decksofinterest:
|
|
|
|
|
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 ownedcards:
|
|
|
|
|
if combined not in tcgcore.ownedcards():
|
|
|
|
|
wantedcards.append(combined)
|
|
|
|
|
highpriority = []
|
|
|
|
|
medpriority = []
|
|
|
|
|