diff --git a/new.py b/new.py index 087a846..809b939 100644 --- a/new.py +++ b/new.py @@ -358,6 +358,10 @@ decknames = [] for deck in decklist: decknames.append(deck["name"]) +cardnames = [] +for card in cardlist: + cardnames.append(card["name"]) + for theme in variables.masscollect: if variables.masscollect[theme]["full"] == True: try: @@ -373,7 +377,7 @@ for theme in variables.masscollect: pass try: for card in variables.masscollect[theme]["singles"]: - if card[:-2] not in decknames: + if card not in cardnames: wantedcard = {} wantedcard["name"] = card wantedcard["colour"] = deckkey[card[:-2]]