Use sorted wantlist for Switch It Up
This commit is contained in:
parent
a8783c9574
commit
02e73e2c93
1 changed files with 1 additions and 2 deletions
3
tools.py
3
tools.py
|
@ -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 = []
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue