mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
make sure to remove inactive templates properly
This commit is contained in:
parent
0032dd39c9
commit
cd76706a2f
1 changed files with 1 additions and 1 deletions
|
@ -552,7 +552,7 @@ and ord = ? limit 1""", m['id'], t['ord']):
|
||||||
remove.append(t)
|
remove.append(t)
|
||||||
del t['actv']
|
del t['actv']
|
||||||
for r in remove:
|
for r in remove:
|
||||||
m['tmpls'].remove(t)
|
d.models.remTemplate(m, r)
|
||||||
d.models.save(m)
|
d.models.save(m)
|
||||||
|
|
||||||
# Post-schema upgrade
|
# Post-schema upgrade
|
||||||
|
|
Loading…
Reference in a new issue