Add function for listing duplicates
This commit is contained in:
parent
5b2f2accc9
commit
01d57c682b
1 changed files with 9 additions and 0 deletions
|
@ -17,6 +17,15 @@ def ownedcards():
|
||||||
pass
|
pass
|
||||||
return sorted(ownedcards)
|
return sorted(ownedcards)
|
||||||
|
|
||||||
|
def showdupes():
|
||||||
|
dupeslist = []
|
||||||
|
previouscard = ""
|
||||||
|
for card in ownedcards():
|
||||||
|
if card == previouscard:
|
||||||
|
dupeslist.append(card)
|
||||||
|
previouscard = card
|
||||||
|
return dupeslist
|
||||||
|
|
||||||
def deckcards(deck):
|
def deckcards(deck):
|
||||||
deckcards = []
|
deckcards = []
|
||||||
for card in ownedcards():
|
for card in ownedcards():
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue