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