mirror of
https://github.com/ankitects/anki.git
synced 2025-11-07 05:07:10 -05:00
did could be a string
This commit is contained in:
parent
2012d0de39
commit
e0b7bca155
1 changed files with 1 additions and 1 deletions
|
|
@ -115,7 +115,7 @@ class DeckManager(object):
|
|||
|
||||
def rem(self, did, cardsToo=False):
|
||||
"Remove the deck. If cardsToo, delete any cards inside."
|
||||
assert did != 1
|
||||
assert str(did) != '1'
|
||||
if not str(did) in self.decks:
|
||||
return
|
||||
# delete children first
|
||||
|
|
|
|||
Loading…
Reference in a new issue