Use sorted wantlist for Switch It Up

This commit is contained in:
mez 2025-08-04 19:11:10 +01:00
parent a8783c9574
commit 02e73e2c93

View file

@ -406,7 +406,6 @@ def nextportfolio(monochrome=False):
print("Master some more decks first")
def switchit():
wantedbypriority = sorted(colors.wantedlist, key=lambda d: d["priority"])
redtrade = []
orangetrade = []
yellowtrade = []
@ -434,7 +433,7 @@ def switchit():
elif card["colour"] == "gray":
greytrade.append(card["name"])
wantednames = []
for card in wantedbypriority:
for card in colors.wantedlist:
wantednames.append(card["name"])
wantall = []
tradeall = []