From ccb0c08c9c1c1f4a5fe8c5e832ee9bd7795091b1 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Sat, 24 Mar 2012 19:03:14 +0900 Subject: [PATCH] another find&replace bug --- anki/find.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/anki/find.py b/anki/find.py index 24c36b85d..112ee7465 100644 --- a/anki/find.py +++ b/anki/find.py @@ -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