diff --git a/anki/collection.py b/anki/collection.py index c6e64441d..6ccdd37bc 100644 --- a/anki/collection.py +++ b/anki/collection.py @@ -269,7 +269,6 @@ crt=?, mod=?, scm=?, dty=?, usn=?, ls=?, conf=?""", def findTemplates(self, note): "Return (active), non-empty templates." - ok = [] model = note.model() avail = self.models.availOrds(model, joinFields(note.fields)) ok = [] @@ -298,7 +297,6 @@ crt=?, mod=?, scm=?, dty=?, usn=?, ls=?, conf=?""", "select id, mid, did, flds from notes where id in "+snids): model = self.models.get(mid) avail = self.models.availOrds(model, flds) - ok = [] for t in model['tmpls']: doHave = nid in have and t['ord'] in have[nid] # if have ord but empty, add cid to remove list diff --git a/anki/tags.py b/anki/tags.py index 86430e9cb..0c115b545 100644 --- a/anki/tags.py +++ b/anki/tags.py @@ -151,7 +151,6 @@ class TagManager(object): ########################################################################## def selTagNids(self, yes, no): - l = [] # find notes that match yes lim = "" args = []