From 5212f62198b9ef7d2c91c9f81c6943c003bca156 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Thu, 5 Jul 2012 01:12:26 +0900 Subject: [PATCH] fix problem with 'or' in findDupes --- anki/find.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/anki/find.py b/anki/find.py index 89eb7e9c9..c812b3d96 100644 --- a/anki/find.py +++ b/anki/find.py @@ -496,7 +496,7 @@ def fieldNames(col, downcase=True): def findDupes(col, fieldName, search=""): # limit search to notes with applicable field name - search += " '%s:*'" % fieldName + search = "(%s) '%s:*'" % (search, fieldName) # go through notes vals = {} dupes = []