mirror of
https://github.com/ankitects/anki.git
synced 2025-09-21 07:22:23 -04: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):
|
def rem(self, did, cardsToo=False):
|
||||||
"Remove the deck. If cardsToo, delete any cards inside."
|
"Remove the deck. If cardsToo, delete any cards inside."
|
||||||
assert did != 1
|
assert str(did) != '1'
|
||||||
if not str(did) in self.decks:
|
if not str(did) in self.decks:
|
||||||
return
|
return
|
||||||
# delete children first
|
# delete children first
|
||||||
|
|
Loading…
Reference in a new issue