Warn when decks with pending cards are in the top wants list

This commit is contained in:
mez 2025-08-17 10:59:22 +01:00
parent 328b4abc2f
commit 557f006884

View file

@ -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 = []