mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 22:42:25 -04:00
fix problem with 'or' in findDupes
This commit is contained in:
parent
52ae784a65
commit
5212f62198
1 changed files with 1 additions and 1 deletions
|
@ -496,7 +496,7 @@ 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:*'" % fieldName
|
search = "(%s) '%s:*'" % (search, fieldName)
|
||||||
# go through notes
|
# go through notes
|
||||||
vals = {}
|
vals = {}
|
||||||
dupes = []
|
dupes = []
|
||||||
|
|
Loading…
Reference in a new issue