fix findDupes() when no limit provided

This commit is contained in:
Damien Elmes 2012-07-05 03:22:00 +09:00
parent 50bfb9dd4b
commit 49ec362ea3

View file

@ -496,7 +496,9 @@ def fieldNames(col, downcase=True):
def findDupes(col, fieldName, search=""):
# limit search to notes with applicable field name
search = "(%s) '%s:*'" % (search, fieldName)
if search:
search = "("+search+") "
search += "'%s:*'" % fieldName
# go through notes
vals = {}
dupes = []