mirror of
https://github.com/ankitects/anki.git
synced 2025-09-23 08:22:24 -04:00
another find&replace bug
This commit is contained in:
parent
ce86670c76
commit
ccb0c08c9c
1 changed files with 1 additions and 1 deletions
|
@ -394,7 +394,7 @@ def findReplace(col, nids, src, dst, regex=False, field=None, fold=True):
|
|||
for m in col.models.all():
|
||||
for f in m['flds']:
|
||||
if f['name'] == field:
|
||||
mmap[m['id']] = f['ord']
|
||||
mmap[str(m['id'])] = f['ord']
|
||||
if not mmap:
|
||||
return 0
|
||||
# find and gather replacements
|
||||
|
|
Loading…
Reference in a new issue