mirror of
https://github.com/ankitects/anki.git
synced 2025-09-20 15:02:21 -04:00
DeckManager.byName check equality ignoring case name
This commit is contained in:
parent
e44b049278
commit
3afb28c05f
1 changed files with 2 additions and 2 deletions
|
@ -242,9 +242,9 @@ class DeckManager:
|
|||
return self.decks['1']
|
||||
|
||||
def byName(self, name):
|
||||
"Get deck with NAME."
|
||||
"""Get deck with NAME, ignoring cases."""
|
||||
for m in list(self.decks.values()):
|
||||
if m['name'] == name:
|
||||
if self.equalName(m['name'], name):
|
||||
return m
|
||||
|
||||
def update(self, g):
|
||||
|
|
Loading…
Reference in a new issue