mirror of
https://github.com/ankitects/anki.git
synced 2025-09-25 09:16:38 -04:00
when a card is in an invalid deck, report that in its name
This commit is contained in:
parent
2ad98f063a
commit
1b6cf2bef8
1 changed files with 4 additions and 1 deletions
|
@ -320,7 +320,10 @@ class DeckManager(object):
|
|||
#############################################################
|
||||
|
||||
def name(self, did):
|
||||
return self.get(did)['name']
|
||||
deck = self.get(did, default=False)
|
||||
if deck:
|
||||
return deck['name']
|
||||
return _("[no deck]")
|
||||
|
||||
def setDeck(self, cids, did):
|
||||
self.col.db.execute(
|
||||
|
|
Loading…
Reference in a new issue