mirror of
https://github.com/ankitects/anki.git
synced 2025-11-07 05:07:10 -05:00
fix findDupes() when no limit provided
This commit is contained in:
parent
50bfb9dd4b
commit
49ec362ea3
1 changed files with 3 additions and 1 deletions
|
|
@ -496,7 +496,9 @@ def fieldNames(col, downcase=True):
|
||||||
|
|
||||||
def findDupes(col, fieldName, search=""):
|
def findDupes(col, fieldName, search=""):
|
||||||
# limit search to notes with applicable field name
|
# limit search to notes with applicable field name
|
||||||
search = "(%s) '%s:*'" % (search, fieldName)
|
if search:
|
||||||
|
search = "("+search+") "
|
||||||
|
search += "'%s:*'" % fieldName
|
||||||
# go through notes
|
# go through notes
|
||||||
vals = {}
|
vals = {}
|
||||||
dupes = []
|
dupes = []
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue