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")
|
print("Master some more decks first")
|
||||||
|
|
||||||
def switchit():
|
def switchit():
|
||||||
wantedbypriority = sorted(colors.wantedlist, key=lambda d: d["priority"])
|
|
||||||
redtrade = []
|
redtrade = []
|
||||||
orangetrade = []
|
orangetrade = []
|
||||||
yellowtrade = []
|
yellowtrade = []
|
||||||
|
@ -434,7 +433,7 @@ def switchit():
|
||||||
elif card["colour"] == "gray":
|
elif card["colour"] == "gray":
|
||||||
greytrade.append(card["name"])
|
greytrade.append(card["name"])
|
||||||
wantednames = []
|
wantednames = []
|
||||||
for card in wantedbypriority:
|
for card in colors.wantedlist:
|
||||||
wantednames.append(card["name"])
|
wantednames.append(card["name"])
|
||||||
wantall = []
|
wantall = []
|
||||||
tradeall = []
|
tradeall = []
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue