Warn when decks with pending cards are in the top wants list
This commit is contained in:
parent
328b4abc2f
commit
557f006884
1 changed files with 15 additions and 2 deletions
17
tools.py
17
tools.py
|
@ -1553,9 +1553,22 @@ def topwant(special=False):
|
|||
wantedch.append(card["name"])
|
||||
showcards = int(input("How many to show? "))
|
||||
if special:
|
||||
print(", ".join(wantedsp[:showcards]))
|
||||
thecards = wantedsp[:showcards]
|
||||
else:
|
||||
print(", ".join(wantedch[:showcards]))
|
||||
thecards = wantedch[:showcards]
|
||||
caution = []
|
||||
for card in colors.pends:
|
||||
for thecard in thecards:
|
||||
if thecard[:-2] == card[:-2]:
|
||||
caution.append(thecard[:-2])
|
||||
caution = sorted(list(dict.fromkeys(caution)))
|
||||
print(", ".join(thecards))
|
||||
if len(caution) > 0:
|
||||
print("Caution: cards from " + ", ".join(caution) + " in pending list")
|
||||
# if special:
|
||||
# print(", ".join(wantedsp[:showcards]))
|
||||
# else:
|
||||
# print(", ".join(wantedch[:showcards]))
|
||||
|
||||
def swapstation():
|
||||
swappablemedium = []
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue