mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
fix case insensitive model check
This commit is contained in:
parent
e20a98d9be
commit
e80419fb53
1 changed files with 1 additions and 0 deletions
|
@ -303,6 +303,7 @@ class Finder(object):
|
|||
|
||||
def _findModel(self, val):
|
||||
ids = []
|
||||
val = val.lower()
|
||||
for m in self.col.models.all():
|
||||
if m['name'].lower() == val:
|
||||
ids.append(m['id'])
|
||||
|
|
Loading…
Reference in a new issue