From e80419fb537e1467901322b5e114016b3ef81254 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Fri, 25 May 2012 20:03:57 +0900 Subject: [PATCH] fix case insensitive model check --- anki/find.py | 1 + 1 file changed, 1 insertion(+) diff --git a/anki/find.py b/anki/find.py index 48f9aea8d..ac1cb1d2a 100644 --- a/anki/find.py +++ b/anki/find.py @@ -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'])